I\'ve inherited a project I\'m working on and I\'m updating some jquery animations (very little practice with jquery).
I have a div I need to add and remove the style at
In case of .css method in jQuery for !important rule will not apply.
In this case we should use .attr function.
For Example: If you want to add style as below: You should use: $("#voltaic_holder").attr("style", "position:absolute;top:-75px !important"); Hope it helps some one. 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
You should use: $("#voltaic_holder").attr("style", "position:absolute;top:-75px !important"); Hope it helps some one. 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
You should use: $("#voltaic_holder").attr("style", "position:absolute;top:-75px !important");
$("#voltaic_holder").attr("style", "position:absolute;top:-75px !important");
Hope it helps some one.