Yeah, it's probably your HTML, the test I made was using jQuery 1.3. But 1.3 has a few selector bugs, 1.3.1 should be out this week, give it a try.
- ricardo On Jan 19, 1:04 am, lideln <lid...@gmail.com> wrote: > Hi, thanks for the fast answer ! > > My menu bar does not work, and the basic example I gave you doesn't work > either with jQuery 1.3, but they both work fine with jQuery 1.2.6. > > You think it's because my XHTML is invalid ? > > I think it will be hard to debug... I can't imagine why another script is > messing with sizzle... ?? > > > > ricardobeat wrote: > > > There is certainly something else, maybe bad mark-up or another script > > messing with jQuery. It's working fine as you can see at > >http://jsbin.com/ojito/ > > > On Jan 18, 11:59 pm, lideln <lid...@gmail.com> wrote: > >> Hi all, > > >> I'm using jQuery 1.3, and I'm having troubles with the ">" selector : it > >> only returns ONE element ! > >> [code] > >> <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> > >> [/code] > >> [code] > >> 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 > >> [/code] > > >> Do you have the same issue ? (you should...) > >> How to fix it ? I searched the web but did not find the answer. > > >> Thanks all ! > > >> PS : I also posted this message on jqueryhelp.com forum > > >> -- > >> View this message in > >> context:http://www.nabble.com/jQuery-1.3-and-%22%3E%22-selector-tp21535798s27... > >> Sent from the jQuery General Discussion mailing list archive at > >> Nabble.com. > > -- > View this message in > context:http://www.nabble.com/jQuery-1.3-and-%22%3E%22-selector-tp21535798s27... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.