How to select text that is not marked up with CSS/jquery?
Posted
by Gal
on Stack Overflow
See other posts from Stack Overflow
or by Gal
Published on 2010-03-23T11:55:12Z
Indexed on
2010/03/23
12:03 UTC
Read the original article
Hit count: 261
I want to apply some CSS to text that I can't get marked up in span's. So for example:
<li><a href="google.com">This is marked up</a> and this is not </li>
I want to select, with either CSS (preferably) or jQuery this bit: and this is not
. Maybe there's a method of selecting the entire li then excluding a, that seems like a bypass.
The reason why I can't get it marked up is because I'm using WP and prefer to do that than dig into endless lines of php code. Thanks a lot for the help.
© Stack Overflow or respective owner