jquery运用
来源:互联网 发布:图像特征匹配算法 编辑:程序博客网 时间:2024/05/21 17:45
jquery表格更新状态
//批量更新 $("#update_Button").click(function () { //得到需要更新的 $("#content input[type='checkbox']:checked").each(function (index, item) { //记录我更新的是哪一行 temptr = $(item).parent().parent(); //得到以前的值 //var username = $(item).parent().parent().find("td").eq(1).html(); //var number = $(item).parent().parent().find("td").eq(2).html(); var myclass = $(item).parent().parent().find("td").eq(3).html(); var address = $(item).parent().parent().find("td").eq(4).html(); //构建一个文本框把值赋进去(变成可编辑状态) //temptr.find("td").eq(1).html($("<input type=\"text\" value=" + username + " />")); //temptr.find("td").eq(2).html($("<input type=\"text\" value=" + number + " />")); temptr.find("td").eq(3).html($("<input type=\"text\" value=" + myclass + " />")); temptr.find("td").eq(4).html($("<input type=\"text\" value=" + address + " />")); }); });
其实还有更简单的方式直接一个循环就可以打开编辑状态与保存回去
1 0
- jquery运用
- jquery运用
- jQuery-Cookie.插件运用
- jQuery 中的filter 运用
- jquery运用a
- jquery运用b
- jquery的ajax运用
- jquery ajax 运用
- jquery $(this)运用
- jQuery 实例运用
- Jquery+HTML+CSS运用
- Jquery的运用
- jquery中checkbox运用
- Jquery日常运用
- 【JQuery】方法运用集
- jquery.vilidate的运用
- jquery的fullCalender插件运用
- JQuery mouse事件运用方法
- 【主题演讲】程序员,不是码农
- Hibernate基础知识(8)
- zookeeper原理
- C#获取当前日期时间
- 桥接模式
- jquery运用
- C#中重写(override)和覆盖(new)的区别
- Android-动画详解
- ios UIWebview中网页宽度自适应手机
- 小马激活工具对比暴风激活工具
- spring+mybatis多数据源配置、读写分离
- ListView使用技巧总结
- 二叉树前序、中序、后序遍历相互求法
- java通过filter单点登陆