How to set class attribute of an element in Javascript?
This question already has an answer here:
You can use className
property :
element2.className = "chosen-select";
Documentation
链接地址: http://www.djcxy.com/p/25204.htmlThis question already has an answer here:
You can use className
property :
element2.className = "chosen-select";
Documentation
链接地址: http://www.djcxy.com/p/25204.html