Answers for "form onsubmit event"

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
0

html form onsubmit

This can be used for buttons
Posted by: Guest on August-16-2021

Browse Popular Code Answers by Language