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 -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -