#6368 closed bug (duplicate)
jQuery Live binding to form submit in IE
Reported by: | ahsteele | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.3 |
Component: | event | Version: | 1.4.2 |
Keywords: | live | Cc: | |
Blocked by: | Blocking: |
Description
In Internet Explorer 8 (IE8) binding to the submit event with live does not work but does work in Firefox, Chrome, and Safari.
$('form').live('submit', function (event) {......});
See http://forum.jquery.com/topic/ie-specific-issues-with-live-submit for discussion.
Change History (6)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
It's not as simple as described above.
The following works:
http://gist.github.com/583117#file_failing.html
However, with a previous live('click'), as described by http://dev.jquery.com/ticket/6359, it fails:
comment:4 Changed 12 years ago by
Priority: | → undecided |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
So yeah - this appears to be a duplicate of #6359.
comment:6 Changed 12 years ago by
I think the problem can still be seen here http://jsfiddle.net/ytxXG/9/
Works fine in all browsers except IE8 and below.
Just tried it in jQuery up to 1.5
i have the same problem. I do this instead, but it won't work if I dynamically add a form element... $(function () { $('form').bind('submit', handle_submit); });
I would much rather write $('form').live('submit', handle_submit);