ITeye博客

jquery选择器总结

agan112 · 2012-11-21 11:43 · 收藏 · Web前端 · Markdown

1. $(document).ready(function() { $('a').css('text-decoration', 'none'); });
DOM对象和jQuery对象 jQuery选择器大全 jQuery事件大全 基于jQuery的插件开发 Wordpress & jQuery 其他

——4.2 和(取attribute属性值等于value或不等于value的元素)

分别为class="item"和class!=item的a标签指定文字颜色

click事件:$("a").click(function(){alert(1)}); innerHTML: alert($("a").innerHTML)

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。