Answers for "submit form on button click html"

3

submit button

<button type="submit" form="form1" value="Submit">Submit</button>
Posted by: Guest on May-04-2020
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

input type on click submit buttom show

<button type="button" onclick="my_button_click_handler">Click this button</button>
<script>
function my_button_click_handler()
{
alert('Button Clcked');
}
</script>
Posted by: Guest on September-17-2020

Code answers related to "submit form on button click html"

Browse Popular Code Answers by Language