手机
当前位置:查字典教程网 >编程开发 >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中for...in语句的使用方法

JS、HTML代码运行工具

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

js鼠标事件

JQuery使用index方法获取Jquery对象数组下标的方法

Jquery使用val方法读写value值

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

Jquery使用css方法改变样式实例

JavaScript模版引擎的基本实现方法浅析

IE中jscript/javascript的条件编译

精品推荐
分类导航