87,922
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(function(){
$("input").click(function(){
if($(this).is(":checked")){
alert($(this).closest("tr").clone().text());
}
});
});
</script>
<style>
</style>
<body>
<table border="1" width="200p" height="30px">
<tr>
<td><input type="radio"/></td>
<td>1</td>
<td>a</td>
<td>你</td>
</tr>
<tr>
<td><input type="radio"/></td>
<td>2</td>
<td>b</td>
<td>好</td>
</tr>
<tr>
<td><input type="radio"/></td>
<td>3</td>
<td>c</td>
<td>shuai</td>
</tr>
</table>
</body>
</html>