Ticket #9643 (closed bug: invalid)
Executing .click() method directly after unbinding an event fails to "click" in IE
| Reported by: | dygerati@… | Owned by: | dygerati@… |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | event | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I have a form that utilizes a click handler to execute certain checks, and then unbinds the click handler and clicks the button again (via .click() ) to submit the form.
This works as expected in Firefox, but the .click() fails to register in IE. This results in the user having to click the button twice in order for the form to be submitted.
In the provided fiddle, the form attempts to submit on the first click in Firefox, but only on the second in IE. This appears to impact all versions of IE.
Change History
comment:1 follow-up: ↓ 3 Changed 2 years ago by addyosmani
- Priority changed from undecided to low
- Component changed from unfiled to event
comment:2 Changed 2 years ago by addyosmani
- Owner set to dygerati@…
- Status changed from new to pending
comment:3 in reply to: ↑ 1 Changed 2 years ago by anonymous
Replying to addyosmani:
Thanks for submitting a ticket to the jQuery project!
Is there a particular reason you're approaching the problem this way rather than simply using $(formElem).submit(); like this? http://jsfiddle.net/f8RkJ/? - it seems unnecessarily 'hacky'.
Heh, agreed :). The simple answer is that form.submit() simply wasn't working for me, which was likely due to a server-side issue; and I'm not too familiar with our Java based back-end, so I found a front-end work around! But, I've since figured it out and am using form.submit() without issues...
Just stumbled across this behavior in the process and thought it might qualify as a bug. Thanks!
comment:4 follow-up: ↓ 5 Changed 23 months ago by trac-o-bot
- Status changed from pending to closed
- Resolution set to invalid
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
comment:5 in reply to: ↑ 4 Changed 23 months ago by dygerati@…
Replying to trac-o-bot:
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Understood, but I actually did respond above; just accidentally did so as an anonymous user.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Thanks for submitting a ticket to the jQuery project!
Is there a particular reason you're approaching the problem this way rather than simply using $(formElem).submit(); like this? http://jsfiddle.net/f8RkJ/? - it seems unnecessarily 'hacky'.