Answers for "how to run js before submit html"

0

how to run js before submit html

<form onsubmit="return do_something()">

function do_something(){
   // Do your stuff here
   return true; // submit the form

   return false; // don't submit the form
}
Posted by: Guest on July-22-2020

Code answers related to "how to run js before submit html"

Code answers related to "Javascript"

Browse Popular Code Answers by Language