2

Possible Duplicate:
Submit a form using jQuery

$('#form')

Supposed the jQuery Object of the form is available.

Community
  • 1
  • 1
omg
  • 130,444
  • 137
  • 283
  • 343

2 Answers2

14
$('#form').submit();
James Skidmore
  • 47,132
  • 31
  • 107
  • 135
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
  • 30,917
  • 5
  • 76
  • 80