当前行处在编辑的状态的时候 点击其他行编辑的话 提示 确定保存当前修改内容(确定 取消)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>可编辑的表格 </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
.hideEle
{
display: none;
}
</style>
<script type="text/javascript" src="jquery-1.4.2.js"></script>
</head>
<body>
<br>
<br>
<h4>
User</h4>
<form action="www.163.com" method="post" id="form" onsubmit="at()">
<table border="1" width="600" id='tb'>
<tbody>
<tr>
<th >
</th>
<th width='300'>
学号
</th>
<th>
操作
</th>
</tr>
<tr><td><input type="checkbox"></td>
<td>000001</td>
<td><a href="#" class="edit">确定</a>|<a href="#" class="remove">取消</a></td>
</tr>
<tr><td><input type="checkbox"></td>
<td>000002</td>
<td><a href="#" class="edit">确定</a>|<a href="#" class="remove">取消</a></td>
</tr>
<tr><td><input type="checkbox"></td>
<td>000003</td>
<td><a href="#" class="edit">确定</a>|<a href="#" class="remove">取消</a></td>
</tr>
<tr><td><input type="checkbox"></td>
<td>000003</td>
<td><a href="#" class="edit">确定</a>|<a href="#" class="remove">取消</a></td>
</tr>
</tbody>
</table>
</form>
</body>
</html>