$('#form')
Supposed the jQuery Object of the form is available.
$('#form')
Supposed the jQuery Object of the form is available.
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();