Answers for "how to submit a form through javascript"

9

javascript submit a form

document.getElementById("myFormID").submit();
Posted by: Guest on August-02-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
1

how to submit a form in js

document.forms["myform"].submit();
Posted by: Guest on August-02-2020

Code answers related to "how to submit a form through javascript"

Browse Popular Code Answers by Language