Jquery submit form

user342391 picture user342391 · Sep 20, 2010 · Viewed 121.7k times · Source

How can I submit a specific form using the follow code (example the id of my form is #form1).

$(".nextbutton").click(function() { submit; });

Answer

Pramendra Gupta picture Pramendra Gupta · Sep 20, 2010

Try this lets say your form id is formID

$(".nextbutton").click(function() { $("form#formID").submit(); });