jQuery submit() on form element does not work

If you encounter the strange behaviour that a call to submit() on a form element does not work, one possible reason could be that you have an input element with the name “submit” in your form, mostlikely a submit button. Change the name attribute of that element to something else and the submit() will work.

This just happend to me and it took quite a while to figure out what the problem was.

Apart from that jQuery really rocks!

Leave a Reply

Your email address will not be published. Required fields are marked *