I want remove class, starts with "color". the classes are added dynamically i didn't know many class starts with color.
<div id="sample" class="color1 orange color2 color3 blue"></div>
Jquery
$("#sample").removeClass("[class^='color']");
But it doesn't work. Any Help?