JQuery removeClass wildcard
Posted
by Jasie
on Stack Overflow
See other posts from Stack Overflow
or by Jasie
Published on 2010-04-15T10:01:31Z
Indexed on
2010/04/15
10:03 UTC
Read the original article
Hit count: 622
Is there any easy way to remove all classes matching, for example,
color-*
so if I have an element:
<div id="hello" class="color-red color-brown foo bar"></div>
after removing, it would be
<div id="hello" class="foo bar"></div>
Thanks!
© Stack Overflow or respective owner