I need an alternative to :contains('text') because I don't want to use jquery.
What I am trying to do is get an entire li tag to not display if the href includes a particular string of text.
li[href*="foo"] { display: none; }
In other words, If you see this...
<UL>
<LI><A href="folder/one">one</A></LI>
<LI><A href="folder/two">two</A></LI>
<LI><A href="folder/three">three</A></LI>
</UL>
and i want the second one (two) to not appear, I would try...
li[href*="two"] { display: none; }
But since this is not working for me, I was wondering if anyone can help me out here.
Thanks.