Skip to content Skip to sidebar Skip to footer

Find Tags Using Css Selector But Not Their Descendants

I'm trying to find tags meeting some condition but just those on the first level (relatively) (not their children etc.). I don't want to find their children, grandchildren etc. who

Solution 1:

Something like this could do the trick:

*:not([id*=example]) > [id*=example]

http://codepen.io/anon/pen/EVxYjE

Post a Comment for "Find Tags Using Css Selector But Not Their Descendants"