I have Jquery Form plugin but i do not have submit button in my form ? i have a checkbox and on its click i submit the form . The form gets submitted but without the ajax . I am wondaring if it is possible to use jquery form plugin with out a submit button in it. ?
This is the code i am using for submitting the jquery form plugin using checkbox onlclick event. Every thing works fine without the onclick event.
$('#anl_popup').hide();
var options = { success: showResponse // post-submit callback };
$('#favourite_form').submit(function() {
$(this).ajaxSubmit(options);
return false;
});
$('#remember_checkbox').click(function() {
document.favourite_form.submit();
return false;
});
Yes, you can submit your form without a submit button.
I would suggest to write it like this:
That should be enough.