> I want to submit the form on change of a dropdown selection rather than
> clicking the submit button.

Hi John,

ajaxForm is not the right method to use in your case.  ajaxForm adds
event listeners so that it can submit your form data when the user
clicks a submit element.  To submit the form data on a select change
event you'll need to add the event listener yourself and then invoke
ajaxSubmit yourself.  Something like this:

$('#mySelectElement').change(function() {
    $('#myForm').ajaxSubmit();
});

ajaxSubmit accepts all of the same options as ajaxForm so any form
defaults that you need to override, or any callbacks you need, can be
passed in using an options arg.

Mike

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to