手机
当前位置:查字典教程网 >编程开发 >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标签加一个链接】相关文章:

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

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

JavaScript 定时器 SetTimeout之定时刷新窗口和关闭窗口(代码超简单)

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

JavaSacript中charCodeAt()方法的使用详解

游戏人文件夹程序 ver 4.03

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

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

通过node-mysql搭建Windows+Node.js+MySQL环境的教程

JS、HTML代码运行工具

精品推荐
分类导航