Trying to use contains selector within nested divs
- by James
<div>
<div>test</div>
</div>
$("div:contains('test')").css('display','none');
I know I am going to kick myself on this. The problem is that when this runs all divs are hidden due to nesting. How do I make it so that the parent div does not get hidden? I am limited to using 1.2.6