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>
运行代码
查看全文
相关阅读:
自己设计大学排名-数据库实践
自己设计大学排名-数据库实践
自己设计大学排名-数据库实践
自己的第一个网页
类和正则表达(自动更正,和代数运算)
第一个爬虫和测试
第一个爬虫和测试
科学计算和可视化
数据库分表后如何处理事务问题
jquery下滑到一定高度后,顶部固定
原文地址:https://www.cnblogs.com/jikey/p/1735304.html
最新文章
Selenium实现去哪儿网登录和搜查机票
Selenium使用cookie登录网站
WL压测实战分析
jmeter录制之blazemeter
jmeter录制方法1:jmeter代理录制
UI测试中的等待方法:三种等待方法的区别
运行自动化测试降本报错“WebDriverException: Message: Element is not clickable at point“
定位元素不能识别的原因
shell中的${},##, %% , :- ,:+, ? 的使用
远程桌面连接(mstsc)全攻略
热门文章
Linux kswapd0 进程CPU占用过高
elasticsearch入门到放弃之elasticsearch-head
安装ElasticSearch Head插件
Elasticsearch-head插件的安装与配置
Shell脚本中$0、$?、$!、$$、$*、$#、$@
mysql的启动方式
golang中格式化符号说明
ssh跳转设置
第一个微信小项目
自己的第一个网页
Copyright © 2011-2022 走看看