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

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -