开发者

mootools recursive remove class

开发者 https://www.devze.com 2023-01-08 21:28 出处:网络
I want to remove classes in the particular div. I mean i have to remove the classname called \"highlight\" in the div id called \"result\". In开发者_C百科 the onclick event i want to remove all the \"

I want to remove classes in the particular div. I mean i have to remove the classname called "highlight" in the div id called "result". In开发者_C百科 the onclick event i want to remove all the "highlight" classes. How can i do it? Please help me


easy.

document.id("result").getElements(".highlight").removeClass("highlight");
0

精彩评论

暂无评论...
验证码 换一张
取 消