Tuesday, 2 May 2017

19.To prevent other event handlers from executing after a certain event is fired

event.preventDefault()
$('a').click(function (e) {
    // custom handling here
    e.preventDefault();
});

No comments:

Post a Comment