Answers for "should i use a button with onclick or input type submit to submit a form"

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

Code answers related to "should i use a button with onclick or input type submit to submit a form"

Browse Popular Code Answers by Language