Answers for "html form on submit"

23

html submit button

<input type="submit" value="Submit">
Posted by: Guest on November-28-2019
0

html submit form onclick

var form = document.getElementById("form-id");

document.getElementById("your-id").addEventListener("click", function () {
  form.submit();
});
Posted by: Guest on July-08-2020
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
1

submit html

<input type="submit">
Posted by: Guest on June-03-2020

Browse Popular Code Answers by Language