jQuery selectors of nested ul

__K1NG__

New Member
I'm having issues figuring out a specific selector of a nested unordered list's.How can I select the parent li's that do NOT eventually have a child that contain's the word "test1"..So in this example -> it would give me Parent Cat 1, Parent Cat 2, and Parent Cat 4. Because Parent Cat 3 eventually has a li that contains "test1"\[code\]<ul><li>Parent Cat 1</li><li>Parent Cat 2</li><li>Parent Cat 3 <ul> <li >SubCat1</a> <ul> <li>test1</li> </ul> </li> <li >SubCat2 <ul> <li >test2</li> </ul> </li> </ul></li><li>Parent Cat 4</li></ul>\[/code\]
 
Back
Top