Ticket #5639 (closed bug: fixed)
Binding a function to submit() a form fails in FF 3.0.15 and Chrome
| Reported by: | Julian | Owned by: | brandon |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | event | Version: | 1.4a1 |
| Keywords: | form submit firefox chrome bind click | Cc: | |
| Blocking: | Blocked by: |
Description
Bind a click handler to a function that submits a form fails with no error in 1.4a1.
If you replace $('#the_form').submit(); with alert('something'); it works fine in both versions, so it seems to be related to submit().
This bug is reproducible in Firefox 3.0.15 on Windows and Linux as well as Chrome for Windows and Linux. The issue is not present in IE6 or IE8. The page works fine when you load it with jQuery 1.3.2. I've attached a test file.
Attachments
Change History
Changed 3 years ago by Julian
-
attachment
jqform.html
added
comment:1 Changed 3 years ago by Julian
This seems similar to http://dev.jquery.com/ticket/5124 - I tried the patch for that one with no success.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

test for submit event bug