How to submit form using javascript or jquery.

javascript
jquery
submit
form

Here is the example for submitting form using javascript/jQuery.

Here is the html form.

<form id="testForm"></form>

Example for submit the form using jQuery.

$( "#testForm" ).submit();

Example for submit the form using javascript.

document.getElementById("testForm").submit();

 

You might also like:

How to get id by using name attribute in javascript

20-03-2017 html id name javascript

How to get current date and time (yyyy-mm-dd H:i:s) using javascript

09-03-2017 javascript date time

Navigate to another page using java script

06-03-2017 javascript redirection navigation

How to get drop down value when drop down change using javascript

27-02-2017 onchange events dropdown javascript functions

Get Unique values from array/object in javascript

19-02-2017 javascript unique remove repeated values from array