手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >使用delegate方法为一个tr标签加一个链接
使用delegate方法为一个tr标签加一个链接
摘要:$("table").delegate("tr","click",function(e){checkbox=$(this).children...

$("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"+rollcall_id,"mframe"); } });

【使用delegate方法为一个tr标签加一个链接】相关文章:

Javascript事件触发列表与解说

JS中的Replace方法使用经验分享

Java新手入门教程:新手必须掌握的30条Java基本概念

Jquery使用val方法读写value值

jquery使用each方法遍历json格式数据实例

JavaScript中用getDate()方法返回指定日期的教程

jquery右下角自动弹出可关闭的广告层

常用参考资料(手册)下载或者链接

js生成验证码并直接在前端判断

在JS方法中返回多个值的方法汇总

精品推荐
分类导航