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>
运行代码
查看全文
相关阅读:
Jenkins中Jelly邮件模板的配置
十天冲刺(10)
代码大全阅读笔记01
大二下学期学习进度(十)
十天冲刺(9)
十天冲刺(8)
统计文章中字母、单词出现的频率
十天冲刺(7)
十天冲刺(6)
十天冲刺(5)
原文地址:https://www.cnblogs.com/jikey/p/1735304.html
最新文章
mybatis对象之间映射关系以及数据库表建立的时候外键的添加
mybatis的逆向工程
OnMouseMove消息响应问题(按不到的按钮)
通过系统服务设置程序为开机自启动——系统服务操作(创建/启动/停止/删除)
通过快速启动目录设置程序为开机启动
远程线程注入遇到的问题
MFC 管理员模式下拖拽文件失效解决办法
MFC中定义全局变量
vs2017联机下载插件时进度条不动解决方案
微信防多开功能分析
热门文章
防多开常用思路
testFlight
CocoaPods私有库!!!!!!!!!!!(装逼特技)
H5 css学习
16进制的转换
ios规格证明
H5/
H5 继承
H5
charles中如何对https抓包
Copyright © 2011-2022 走看看