将table中选中的数据移动到右边;

点击一行中的任意一个位置,使其选中:

    注:attr()和prop()都是jquery的方法;

  .attr() : 获取匹配的元素集合中的第一个元素的属性的值 或 设置每一个匹配元素的一个或多个属性。 •.attr( attributeName ) •.attr( attributeName )

  •.attr( attributeName, value ) •.attr( attributeName, value )
  •.attr( attributes )
  •.attr( attributeName, function(index, attr) )
 
  .prop() : 获取匹配的元素集中第一个元素的属性(property)值或设置每一个匹配元素的一个或多个属性。 •.prop( propertyName ) •.prop( propertyName )
  •.prop( propertyName, value ) •.prop( propertyName, value )
  •.prop( properties )
  •.prop( propertyName, function(index, oldPropertyValue) )
   是参数有区别,attr()传入的是attributeName,而prop()传入的是propertyName,

给前面复选框添加选中事件,然后对选中的进行向右边table移动的操作:

将两个table放在两个div中,会存在一根问题,就是td的宽度会不一致;

可以对他们分别设置宽度;

或者,通过js,获取到body中每一个的宽度,然后给thead每一个td加上这个宽度;

最新文章

  1. 因为多余jar包,所报的错
  2. iOS持续写文件到本地
  3. window go protobuf
  4. python tkinter用Treeview实现ListView效果
  5. Maven学习总结
  6. [团队项目]sprint3 & 团队贡献分。
  7. 坑爹的对GBK编码的字符进行url编码
  8. (五)CSS伪类(Pseudo-class)
  9. Exploring the 7 Different Types of Data Stories
  10. MATLAB中的函数的归总
  11. VS2013 编译 MySql Connector C 6.1.6
  12. C#多线程及GDI(Day 23)
  13. XML解析中的namespace初探
  14. Replication--进程无法在“xxxx”上执行“sp_replcmds”
  15. C语言解析17monipdb.dat(http://www.ipip.net/)免费数据库
  16. 腾讯技术分享:GIF动图技术详解及手机QQ动态表情压缩技术实践
  17. Using Information Fragments to Answer the Questions Developers Ask
  18. 论文笔记:Parallel Tracking and Verifying: A Framework for Real-Time and High Accuracy Visual Tracking
  19. 玲珑OJ 1129 - 喵哈哈村的战斗魔法师丶坏坏い月
  20. Golang 语言安装

热门文章

  1. 014_STM32程序移植之_L298N电机驱动模块
  2. js中错误处理机制
  3. F. Make Them Similar ( 暴力折半枚举 + 小技巧 )
  4. 自己实现dup2
  5. pom.xml报错 : Missing artifact org.apache.shiro:shiro-spring:bundle:1.2.5
  6. 微信小程序之简单记账本开发记录(二)
  7. Redis启动后基础只是讲解
  8. 表单 Flask-WTF - 校验器
  9. 使用PyMySQL连接MySQL错误
  10. electron之环境安装、启动程序