开发者

jquery add, remove class

开发者 https://www.devze.com 2023-01-23 19:08 出处:网络
i have a 开发者_JAVA技巧field like Some times i want to add the class attribute \'datepicker \'. How can i do it?Use the addClass() and removeClass() methods:

i have a 开发者_JAVA技巧field like Some times i want to add the class attribute 'datepicker '. How can i do it?


Use the addClass() and removeClass() methods:

$("#yourElementId").addClass("datepicker");
0

精彩评论

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