javascript - Check whether link's text is "B" then remove its class? -
i want check whether a
node contains word "b". if so, node's someclass
class should removed.
for example:
<a href="http://link.com" class="someclass">b</a>
$("a:contains('b')").removeclass('someclass');
Comments
Post a Comment