Css Selector (or Javascript If Needed) For Select Div's Which Contain At Least One Ul
Suppose I have a hierarchy like this:
Solution 2:
Parent selector isn't available in CSS, despite a lot of requests to add it.
jQuery has a nice selector, know as :has
; http://api.jquery.com/has-selector/
$('div:has(ul)');
Would be the jQuery selector.
Post a Comment for "Css Selector (or Javascript If Needed) For Select Div's Which Contain At Least One Ul"