Ah ok I follow you now. Ok I'm not certain this will work; I haven't tested it but give it a go and see what you get.
From the jQuery selectors documentation:
Hide all Paragraph elements that contain a link: $("p[a]").hide(); So my guess at how to do what you want would be:
$("ol.ol1[li.correctchosen]");
If my understanding is correct, that will give you all <ol>s with class 'ol1' which contain an <li> of class 'correctchosen'. Give it a shot and let us know the result! --rob On 6/5/07, SamCKayak <[EMAIL PROTECTED]> wrote:
I am learning, I am learning... I missed the subtle difference in the documentation: $('a, b') and $('a', 'b') !!! The way to filter my list is using a function.. like so: ('ol.ol1 > li').filter( function() { return $('li.correctchosen ', this).length != 0 } ) // Filters the first set down to those that contain a "correct chosen list element somewhere deep inside the dom subtree of 'this' element. Any short technique appreciated. Overview of the HTML: <ol class="ol1"><li> ... html here... <ul><li class="correctchosen"></ li></ul></li>
-- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 "There's a whale there's a whale there's a whale fish" he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome.