> Attach a click event to: > <li>List item without link</li> > > Do not attach click event to: > <li><a href="">Link 1</a></li>
How about this? $("li").not($("li:has(a)")).click( ... )
> Attach a click event to: > <li>List item without link</li> > > Do not attach click event to: > <li><a href="">Link 1</a></li>
How about this? $("li").not($("li:has(a)")).click( ... )