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>
运行代码
查看全文
相关阅读:
github设置添加SSH
pythonanywhere笔记
Python3x 爬取妹子图
python3.4 百度API接口
简易博客开发(8)----django1.9 博客部署到pythonanywhere上
Python3.4+Django1.9+Bootstrap3
docker搭建私有仓库之harbor
docker新手常见问题和知识点
node之sinopia搭建本地npm仓库
rancher-HA快速搭建
原文地址:https://www.cnblogs.com/jikey/p/1735304.html
最新文章
linux下python调用c模块
将搜狗词库.scel格式转化为.txt格式
python集合(set)操作
Textrank算法介绍
windows下面安装Python和pip终极教程
代理服务器和反向代理服务器的区别
Portainer安装配置
Dockerfile build run
Linux安装mysql
Apollo配置中心
热门文章
ELK日志中心
Polly失败重试
.NETCore远程调用
.NETCore环境配置
.NET Core webapi路由
.netcore-Swagger
django定义app名称
django admin后台css样式丢失
django 模型中的计算字段
如何使用github,简单教程
Copyright © 2011-2022 走看看