使用delegate方法为一个tr标签加一个链接
更新时间:2014年06月27日 17:50:42 投稿:whsnow
这篇文章主要介绍了使用delegate方法为一个tr标签加一个链接,并规定当这些事件发生时运行的函数,需要的朋友可以参考下
$("table").delegate("tr","click",function(e){ checkbox=$(this).children().first().children()[0]; alter=$(this).children().eq(8).children().children()[0]; delet=$(this).children().last().children().children()[0]; if(e.target!=checkbox&&e.target!=alter&&e.target!=delet){ rollcall_id=$(this).children().first().children().val() open("/Student/student?sid="+rollcall_id,"mframe"); } });
相关文章
google jQuery 引用文件,jQuery 引用地址集合(jquery 1.2.6至jquery1.5.2)
很多网站都是使用这种方式引入,客户的浏览器可能已经缓存过了 jquery。可以直接调用本地的,速度更快2011-04-04分享20款美化网站的 jQuery Lightbox 灯箱插件
这篇文章主要介绍了分享20款美化网站的 jQuery Lightbox 灯箱插件,需要的朋友可以参考下2014-10-10
最新评论