87,910
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html>
<html>
<head>
<title>text</title>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
$(function(){
$("#table_list tr:gt(0)").click(function(){
$(this).find(":radio").attr("checked",true);
});
});
</script>
</head>
<body>
<div id="table_list">
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tr>
<th></th>
<th>用户名</th>
<th>创建时间</th>
</tr>
<tr>
<td><input id="radiobox1" name="radiobox" type="radio" value="1" ></td>
<td>aaa</td>
<td>aaa</td>
</tr>
<tr>
<td><input id="radiobox2" name="radiobox" type="radio" value="2" ></td>
<td>aaa</td>
<td>aaa</td>
</tr>
<tr>
<td><input id="radiobox3" name="radiobox" type="radio" value="3" ></td>
<td>aaa</td>
<td>aaa</td>
</tr>
</table>
</div>
</body>
</html>