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"