Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery form submit() is not working in IE6?

I want to submit a with using jquery as below;

$("#formid").submit(); 

Its working perfect in all browsers except IE6.

How to make it work in IE6 ??

like image 739
djmzfKnm Avatar asked Jan 15 '09 06:01

djmzfKnm


Video Answer


1 Answers

You probably have an <input name="submit" /> somewhere in your form, which overwrites the function "submit" of the form in IE.

Edit:

I have tested in some other browsers. The latest versions of all major browsers seem to be affected by this issue.

  • IE - all versions
  • Firefox 4+
  • Chrome at least since version 12
  • Opera at least since version 11

Bottom line: Never name your inputs "submit", or any other default property or method of the form element (e.g. "action" or "reset") . See MDC for a complete overview.

like image 162
I.devries Avatar answered Sep 17 '22 13:09

I.devries