Ticket #7000 (closed bug: duplicate)
The "live change" event of the "select" element is called twice
| Reported by: | marat | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.4.3 |
| Component: | event | Version: | 1.4.2 |
| Keywords: | live, select, onchange | Cc: | |
| Blocking: | Blocked by: |
Description
If we have some "select" elements which are used the "live" binding model:
$("select").live("change", fn);
and some "select" elements which are used the "inline" binding model:
<select onchange="fn();">...</select>
and if we call the "change" event then this event will be called twice.
If we re-write the existing "inline" binding model to the the following binding model:
$("select").change(fn);
then this case will not reproduced.
Please, see the attached example.
Note: Reproduced only in IE 8 (IE 7 compatibility mode)
Attachments
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

