Bug Tracker

Modify

Ticket #7000 (closed bug: duplicate)

Opened 3 years ago

Last modified 15 months ago

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

jquery_live_bug.htm Download (1.0 KB) - added by marat 3 years ago.

Change History

Changed 3 years ago by marat

comment:1 Changed 3 years ago by snover

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #6593.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.