This question already has an answer here:
- Submit a form using jQuery 22 answers
How can I submit a specific form using the follow code (example the id of my form is #form1).
$(".nextbutton").click(function() { submit; });
This question already has an answer here:
How can I submit a specific form using the follow code (example the id of my form is #form1).
$(".nextbutton").click(function() { submit; });
Try this :
or
You can try like:
Or even you can try like
Try this lets say your form id is formID
Since a jQuery object inherits from an array, and this array contains the selected DOM elements. Saying you're using an id and so the element should be unique within the DOM, you could perform a direct call to submit by doing :
If you have only 1 form in you page, use this. You do not need to know id or name of the form. I just used this code - working:
You don't really need to do it all in jQuery to do that smoothly. Do it like this: