Answers for "how to create a form when a submit button is clicked"

1

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
6

when i click button inside form it submit

<button type="button">Button</button>
Posted by: Guest on July-09-2020

Code answers related to "how to create a form when a submit button is clicked"

Browse Popular Code Answers by Language