jQuery 1.3 and ">" selector
Hi all,
I'm having an issue with jQuery 1.3 and the ">" selector. It only returns ONE element !
An example :
-
<div id="coucou">
<div class="test">bla</div>
<div class="test">bla</div>
<div class="test2">bla</div>
<div class="test">bla</div>
<div class="test2">bla</div>
<div class="test">bla</div>
<div class="test">bla</div>
<div class="test2">bla</div>
<div class="test">bla</div>
</div>
-
var aSel = $("#coucou > .test");
log(aSel); // displays : Object length=1 prevObject=Object context=document
aSel.css("background-color", 'red'); // Only the first div.test becomes red
Do you have the same issue ? (you should...)
How to fix it ? I searched the web but did not find the answer.
Thanks all !