Modify ↓
Ticket #6310 (closed bug: duplicate)
onchange function might be executed twice in IE8
| Reported by: | mlangc | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.4.2 |
| Component: | event | Version: | 1.4.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Registering two change event handlers on the same element, one with jQuery.change() and another with element.onchange leads to the event handler that has been assigned to onchange to be executed twice. A simple example that illustrates this is attached.
Attachments
Change History
Changed 3 years ago by mlangc
-
attachment
jQueryOnChange.zip
added
comment:1 Changed 3 years ago by brightertools
I get a similar problem when hard-wiring an onchange event on a select list and binding a 'change' event. the hard-wired event gets called twice in IE.
more info here: http://stackoverflow.com/questions/2888800/html-select-list-why-would-onchange-be-called-twice
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Simple testcase