jquery 实现两个表格之间的数据互换 jquery 实现两个表格之间的数据互换? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!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><style type="text/css">table { border:1px solid #000;}</style><script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script><script type="text/javascript">$(document).ready( function() { $("#btn_switchTableData").click( function() { var t1 = $("#t1").children().clone(); $("#t1").empty().append($("#t2").children()); $("#t2").append(t1); });});</script></head><body><table id="t1"> <tr> <td>AAA</td> </tr></table><table id="t2"> <tr> <td>BBB</td> </tr></table><input type="button" value="互换" id="btn_switchTableData" /></body></html> 经典老问题 困惑死多少新人 用jquery将textarea的值放入Array()中 JSON的eval()读取法问题 为什么我下下来的文件是乱码 如何定制disabled时的CSS? json复杂对象无法被jquery解析 急问:树型菜单的链接问题! 对text中输入的非法字符进行识别!等问题,在线等 什么方法可以使表单上的一个提交按钮 又有HIDDEN属性,又有SUBMIT属性。~在线等待。急 关于select extjs4的问题 关于treestore的 数据库中取出的HH:MM:SS的时间如何转化成HH:MM在前台显示
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
table {
border:1px solid #000;
}
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
$(document).ready( function() {
$("#btn_switchTableData").click( function() {
var t1 = $("#t1").children().clone();
$("#t1").empty().append($("#t2").children());
$("#t2").append(t1);
});
});
</script>
</head><body>
<table id="t1">
<tr>
<td>AAA</td>
</tr>
</table>
<table id="t2">
<tr>
<td>BBB</td>
</tr>
</table>
<input type="button" value="互换" id="btn_switchTableData" />
</body>
</html>