Sorry, my mistake! I had another element in that page with the same class. On 9/10/06, John Resig <[EMAIL PROTECTED]> wrote: > Hmm... I can't duplicate this. I somehow suspect that either: > > 1) You're using an old version of jQuery, try upgrading to jQuery 1.0.1: > http://jquery.com/src/jquery-1.0.1.js > > or 2) Your document has an instance of class="a" above the actual div > that you want to select, making it select too much. > > If the problem is still happening for you, could you provide a URL to > where its occurring? Thanks! > > --John > > > I have a node hierarchy like this: > > <div class="a"> > > <div></div> > > <div></div> > > </div> > > $("div.a/div") will select (correctly) the two child divs while > > $(".a/div") selects three divs (also selects parent div). > > Is this a bug? > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ >
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
