Answers for "can we put a onclick on submit button html"

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 "can we put a onclick on submit button html"

Browse Popular Code Answers by Language