开发者

jquery add, remove class

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜