Answers for "how to stop click event in jquery"

7

jquery preventdefault

$("a").click(function(event){
  event.preventDefault();
});
Posted by: Guest on November-10-2020
1

jquery prevent event bubbling

$('myclass').bind('amodaldestroy'), function(event) {
    ....does something....
    event.stopPropagation();
});
Posted by: Guest on October-23-2020

Code answers related to "how to stop click event in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language