首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

jQuery罗选

2012-10-18 
jQuery筛选1.过滤????$(document).ready(function(){ $(#id_but).click(function(){//addalert($(p).a

jQuery筛选

1.过滤

?

?

?

?

$(document).ready(function(){ $("#id_but").click(function(){//addalert($("p").add("<span>hello</span>").text());//chinahelloalert($("p").add("label").text());//chinahello//该方法将两个jQuery结果集连接起来形成一个新的结果集,不会影响页面显示//contents$("p").contents().wrap("<b/>");//china加粗$("#id_ifn").contents().find("body").append("<div>Hello China</div>");//addSelf$("#td_002").find("a").andSelf().css("color","red");//zhang和san都会变成red$("#td_002").find("a[href*='#']").andSelf().css("color","red");//等效//end()$("#td_002").find("a").click(function(){alert("This is super link");return false;}).end().css("color","red");});});

?

热点排行