zoukankan
html css js c++ java
Jqtable edit
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>豪情</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <style> p{line-height:23px;margin:0;padding:0;} table,th,td{border:1px solid #96C2F1;border-collapse:collapse;} tr{cursor:pointer;} </style> <script> $(function(){ $('#tab tr').click(function(){ $(this).find('td').each(function(i){ $('form>input').eq(i).val($(this).text()); }); alert($('form>input').eq(1).val()); });x }); </script> </head> <body> <form action=""> 姓名:<input type="text" name="" id="" /> QQ:<input type="text" name="" id="" /> E-mail:<input type="text" name="" id="" /> <input type="button" value="修改" /> <table id="tab" width="680" style="margin-top:10px;"> <tr> <th>姓名</th> <th>QQ</th> <th>E-mail</th> </tr> <tr> <td>豪情</td> <td>249056406</td> <td>jikeytang@gmail.com</td> </tr> <tr> <td>Jikey</td> <td>123</td> <td>puag@gmail.com</td> </tr> <tr> <td>Tont</td> <td>456</td> <td>tangjikey@gmail.com</td> </tr> </table> </form> </body> </html>
运行代码
查看全文
相关阅读:
邪恶的强制数据转换
知识普及
判断是否为一个数字
parseInt
webpack学习记录
数组隐藏属性
elasticSearch基本使用
elasticsearch安装和部署
neo4j索引
spark yarn 提交作业
原文地址:https://www.cnblogs.com/jikey/p/1735304.html
最新文章
Logic operator for boolean indexing in Pandas
python中,reload重新加载module
python为什么没有overload
pyplot交互地画多个plot
弱类型、强类型、动态类型、静态类型语言的区别是什么?
matplotlib的boxplot上画横线
在flask中使用SQLAlchemy连接sqllite数据库
用递归函数和栈操作逆序一个栈
由两个栈组成的队列(C++实现)
Visual Studio Code配置 C / C++ 环境
热门文章
设计一个有getMin功能的栈(C++实现)
栈中的方法peek()和pop()
C++中引用和指针的区别
关联容器的操作(pair,map)
迭代器访问list中元素及创建list对象方法运用
多态性
this指针的作用
css3选择器
数组reduce方法
json对象
Copyright © 2011-2022 走看看