Side navigation
#9670 closed bug (duplicate)
Opened June 25, 2011 04:22PM UTC
Closed June 26, 2011 05:16AM UTC
Last modified June 26, 2011 05:16AM UTC
selectedIndex returns undefined
Reported by: | alex.rdv@gmail.com | Owned by: | alex.rdv@gmail.com |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | attributes | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This works OK in 1.5.2 but returns undefined in 1.6.1
<select name=”testselect” id=”testselect” onChange="alert($(this).attr('selectedIndex'))">
<option value="val1">Value 1</option>
<option value="val2">Value 2</option>
</select>
Attachments (0)
Change History (3)
Changed June 25, 2011 04:41PM UTC by comment:1
component: | unfiled → attributes |
---|---|
owner: | → alex.rdv@gmail.com |
status: | new → pending |
Changed June 26, 2011 05:16AM UTC by comment:2
priority: | undecided → low |
---|---|
resolution: | → duplicate |
status: | pending → closed |
selectedIndex is not an attribute.
Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, I've created this boilerplate: http://jsfiddle.net/rwaldron/da3nM/ Open the link and click to "Fork" in the top menu.