开发者

With jQuery, is it possible to highlight a link with a background color that comes from an ajax request?

开发者 https://www.devze.com 2023-03-10 04:49 出处:网络
.live() handles only events, and I wish to traverse on the \"live\" elements to add a background color.

.live() handles only events, and I wish to traverse on the "live" elements to add a background color.

Is it possible with jQuery ?

开发者_JAVA技巧

Thanks.


.addClass can use for adding a class.

But you have to identify the links by id and apply it

http://api.jquery.com/addClass/

http://api.jquery.com/add/

http://api.jquery.com/css/

0

精彩评论

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

关注公众号