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>
运行代码
查看全文
相关阅读:
[LeetCode] Happy Number 快乐数
imread() not working in OpenCV 2.4.11 Debug mode
OpenCV 3.0 VS2010 Configuration
[LeetCode] 22. Generate Parentheses 生成括号
[LeetCode] 24. Swap Nodes in Pairs 成对交换节点
[LeetCode] 25. Reverse Nodes in k-Group 每k个一组翻转链表
[LeetCode] 29. Divide Two Integers 两数相除
[LeetCode] Bitwise AND of Numbers Range 数字范围位相与
[LeetCode] 31. Next Permutation 下一个排列
[LeetCode] 32. Longest Valid Parentheses 最长有效括号
原文地址:https://www.cnblogs.com/jikey/p/1735304.html
最新文章
Mac 10.12安装7zip/rar解压/压缩工具7zip-Keka
Mac 10.12安装Google浏览器
Mac 10.12安装hosts快速切换工SwitchHosts!
Mac 10.12安装Go2Shell在资源管理器快速打开Shell并跳转到指定位置
Mac 10.12安装流量监控软件Magican
Mac 10.12安装截图工具Jietu
Mac下使用Wine安装Notepad++
Ubuntu 16.04下使用Wine安装Notepad++
hosts不支持泛解析
Linux下查看某个进程占用的CPU、内存
热门文章
Linux下通过进程名查询占用的端口
Linux下通过端口号查询占用的进程,并知道其所在的位置
我的ImageIO.write ByteArrayOutputStream为什么这么慢?
multipart upload
项目重构的一点体会
mybatis-generator插件执行报错:Cannot resolve classpath entry
spring-cloud-starter-gateway
[LeetCode] Remove Linked List Elements 移除链表元素
[LeetCode] 17. Letter Combinations of a Phone Number 电话号码的字母组合
Solve error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2'
Copyright © 2011-2022 走看看