【发布时间】:2015-02-19 14:13:43
【问题描述】:
HTML
<div class="ativo37 and many other classes"></div>
<div class="another classes here with ativo1"></div>
<div class="here ativo9 and more two or three"></div>
JS
$("div[class^='ativo']").on("click", function(){
$(this).removeClass("^='ativo'"); // How to achieve it?
});
除了.removeClass("^='ativo'");,我还能做什么?
【问题讨论】:
标签: javascript jquery