Answers for "html button prevent default"

7

jquery preventdefault

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

js preventdefault

function(event) {
  event.preventDefault();
}
Posted by: Guest on December-10-2020
0

prevent button from submitting form

function myFunc(e){
       e.preventDefault();
}
Posted by: Guest on June-24-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language