Skip to main content

Bug Tracker

Side navigation

#9096 closed bug (fixed)

Opened May 04, 2011 01:34PM UTC

Closed May 04, 2011 03:35PM UTC

Last modified March 08, 2012 06:48PM UTC

Selector or find bug in jQuery 1.6

Reported by: Owned by:
Priority: low Milestone: 1.6.1
Component: selector Version: 1.6
Keywords: Cc:
Blocked by: Blocking:

I used next code with jQuery 1.5 - 1.5.2, but after updating to jQuery 1.6 this code doesn't works.

My example:

<select multiple onChange="$(this).find('option[value=\\'russian\\']').attr('selected', 'selected');" name="core[active_languages][]" size="5">

<option value="english">English</option>

<option selected value="russian">Русский</option>


P.S. Sorry for my english

Attachments (0)
Change History (3)

Changed May 04, 2011 02:50PM UTC by timmywil comment:1

component: unfiledselector
owner: →
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on that reproduces the issue experienced to help us assess your ticket.

Additionally, test against the jQuery (edge) version to ensure the issue still exists.

Works for me:

Changed May 04, 2011 03:03PM UTC by anonymous comment:2

I have the same result on my site, as on:

But, when change framework to jQuery 1.5.2 - example works good.

Changed May 04, 2011 03:35PM UTC by timmywil comment:3

milestone: 1.next1.6.1
resolution: → fixed
status: pendingclosed

Oh, I see the different behavior. I saw it was getting selected on blur, but you'd like it selected before that. Switching to .prop will give you the same behavior as before. Nevertheless, this will work as before in 1.6.1.