Bug Tracker

Modify

Ticket #6310 (closed bug: duplicate)

Opened 3 years ago

Last modified 15 months ago

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

jQueryOnChange.zip Download (24.8 KB) - added by mlangc 3 years ago.
Simple testcase

Change History

Changed 3 years ago by mlangc

Simple testcase

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

comment:2 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.