Skip to main content

Bug Tracker

Side navigation

#10492 closed bug (invalid)

Opened October 14, 2011 08:58AM UTC

Closed October 17, 2011 08:33PM UTC

find(".class") behaves different in IE / Moz when element has more than one class

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:

<div id="parent">

<select class="classone classtwo">

<option value="1" selected>one</option>

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



<script type="text/javascipt">

alert ($("#parent").find(".classtwo").val());

// works in Chrome but not in IE.


Attachments (0)
Change History (3)

Changed October 15, 2011 03:15AM UTC by bobholt comment:1

Could this be a problem with alert()? Or perhaps running your script before document ready?

I created a small test page ( and got the expected result in IEs 9, 8, 7, and 6 as long as I wrote it to the page and didn't use alert().

This code on my test page seems to work:

 $('#result1').html( $("#parent").find(".classone").val() ); // 1
 $('#result2').html( $("#parent").find(".classtwo").val() ); // 1

Changed October 17, 2011 01:01AM UTC by anonymous comment:2

Yep, sorry. I did the same with this code and it worked in IE. I must be having some other issue but jumped to this conclusion without checking properly.

find is all good...

Changed October 17, 2011 08:33PM UTC by timmywil comment:3

resolution: → invalid
status: newclosed