2

Possible Duplicate:
Submit a form using jQuery

$('#form')

Supposed the jQuery Object of the form is available.

Community
  • 1
  • 1
omg
  • 136,412
  • 142
  • 288
  • 348

2 Answers2

14
$('#form').submit();
James Skidmore
  • 49,340
  • 32
  • 108
  • 136
0

If you do a lot of form ajaxery, you may be interested in this plugin. You can wire up your form on document ready and it will handle the ajaxing:

$('#form').ajaxForm();
Andy Gaskell
  • 31,495
  • 6
  • 74
  • 83