Skip to main content

Bug Tracker

Side navigation

#1477 closed bug (invalid)

Opened August 10, 2007 12:02AM UTC

Closed December 07, 2007 03:15AM UTC

.val() on mouseup in IE

Reported by: Draeli Owned by:
Priority: major Milestone: 1.2.2
Component: event Version: 1.1.3
Keywords: Cc:
Blocked by: Blocking:
Description

I use basic JQuery 1.1.3.1.

I have an element :

<select id="emblem">

<option value="0">1</option>

<option value="1">2</option>

...

When i do :

$("#emblem").val();

under Firefox no problem, 0 or 1 is return when is select by mouseup event, but under IE7 (7.0.6), when i select by same event, result is always 0.

Attachments (1)
  • jquery_test.html (0.8 KB) - added by davidserduke November 29, 2007 04:41PM UTC.

    test case

Change History (5)

Changed August 10, 2007 12:06AM UTC by Draeli comment:1

I have same problem with :

$("#emblem").attr("value");

under Firefox that ok, under IE7 ... always 0 value is return.

Changed August 10, 2007 01:12AM UTC by john comment:2

summary: About IE7.0.6.val() on mouseup in IE

Changed August 10, 2007 06:29AM UTC by john comment:3

component: coreevent

Changed November 29, 2007 04:42PM UTC by davidserduke comment:4

milestone: 1.1.41.2.2
need: ReviewPatch

I'm not sure how this can be fixed. It appears IE just hasn't updated the selected values yet when it fires the mouseup event. A work-around is to use the change event which seems to work fine.

I'll leave it open for now if anyone has any ideas.

I've attached a test case that was written based largely on the description.

Changed December 07, 2007 03:15AM UTC by brandon comment:5

resolution: → invalid
status: newclosed

The change even would be more appropriate in this situation.