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>
运行代码
查看全文
相关阅读:
网络时间校对
OleVariant的本质
GIT生成SSHKEY公钥放到服务器免密登录
git 清除所有untracked file
Linux命令 cat命令
Linux如何通过命令查看日志文件的某几行(中间几行或最后几行)
Git提交(PUSH)时记住密码 不用每次都输入密码
arcgis10 arcmap10插件监控打开和保存文档
arcmap10插件必看网页
arcgis分解每一个部分为一个对象
原文地址:https://www.cnblogs.com/jikey/p/1735304.html
最新文章
30岁前男人需要完成的事
推荐大家一个保护视力的Visual Studio皮肤
Word常用定义的变量
Delphi 类方法也分私有和公有方法之分
Delphi dbgrideh颜色设置
Windows API ShellExecute的用法
王永庆经营成功的八个秘诀
Delphi Ole操作Word,判断是否有打开的文档,并且给关闭
读懂这26句话,快乐由你掌握
[CSDN-Word教程]自动完成Word 日常任务
热门文章
Delphi NativeXML 乱码的问题
Delphi 如何实现在DbgridEh中不同的行显示不同的颜色
巢状对象提交数据的注意事项
USB打印机开钱箱
datasnap 长连接、短连接
DataSnap Stream 传递大数据
DATASNAP双缓存下载文件
断网收银数据同步方案
让delphi程序不受WINDOWS日期格式的影响
XE 获取硬盘序列号
Copyright © 2011-2022 走看看