How do I submit a form using jQuery?

Possible duplicate:
Submit form using jQuery

$('#form')

      

It assumes that the form's jQuery object is available.

+2
jquery submit


source to share


2 answers


$('#form').submit();

      



+14


source to share


If you do a lot of form ajaxery, you might be interested in this plugin . You can connect the form on the finished document and it will handle the ajaxing:



$('#form').ajaxForm();

      

0


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics