jQuery form submit() is not working in IE6?

后端 未结 8 1800
忘掉有多难
忘掉有多难 2020-12-03 01:14

I want to submit a with using jquery as below;

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

Its working perfect in all browsers except IE6.

How to mak

8条回答
  •  猫巷女王i
    2020-12-03 01:47

    You probably have an 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.

提交回复
热议问题