Answers for "prevent action of submit button using javascript"

8

javascript prevent form submit

<form name="foo" onsubmit="return false">
Posted by: Guest on March-04-2020
0

prevent button from submitting form

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

Code answers related to "prevent action of submit button using javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language