Skip to main content

Bug Tracker

Side navigation

#5800 closed bug (worksforme)

Opened January 14, 2010 10:49AM UTC

Closed October 02, 2010 06:41PM UTC

Last modified March 14, 2012 12:10AM UTC

Change events fires in IE8 on clicking in text input box

Reported by: hugo Owned by: brandon
Priority: major Milestone: 1.4.1
Component: event Version: 1.4
Keywords: Cc:
Blocked by: Blocking:
Description

When I bind the change event to text inputs in this manner:

$("input").each(function() {

$(this).bind("change", function() {

alert("changed!!");

});

});

Then in IE8 the change event is triggered and the alert box is shown when you click with the mouse some of the boxes.

When I bind the change event like this:

$("input").bind("change", function() {

alert("changed!!");

}

});

the event is not triggered when clicking in the boxes.

In version 1.3.2 the change event is not triggered.

Attachments (1)
Change History (4)

Changed January 16, 2010 02:59PM UTC by dmethvin comment:1

See also #5823, closed as a duplicate.

Changed January 26, 2010 03:10PM UTC by hugo comment:2

I've tested this bug using jquery 1.4.1.The situation has changed. Initially the alert is not shown. which is correct. But when I click in for example text box 2, delete the last character, and set focus to for example text box 1, no alert is given. JQuery should display "Changed!!"

When I set focus again to inputbox 2, and again delete a character and move the focus to another inputbox, then the alert is displayed!

So it seems that the first change to the inputbox is not caught.

Changed January 29, 2010 11:55AM UTC by TigerShark comment:3

Replying to [comment:2 hugo]:

I've tested this bug using jquery 1.4.1.The situation has changed. Initially the alert is not shown. which is correct. But when I click in for example text box 2, delete the last character, and set focus to for example text box 1, no alert is given. JQuery should display "Changed!!" When I set focus again to inputbox 2, and again delete a character and move the focus to another inputbox, then the alert is displayed! So it seems that the first change to the inputbox is not caught.

I too am experiencing this behavior in IE8 and jQuery 1.4.1. I am hooking the change event to all textboxes on a page, but the change event is first fired when any textbox receives it's second change.

Changed October 02, 2010 06:41PM UTC by snover comment:4

resolution: → worksforme
status: newclosed

live test case. Not reproducible with latest jQuery.