87,955
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
<table>
<tr>
<td><input class="checkbox" type="checkbox"/></td>
<td><input type="text" disabled="disabled"/></td>
</tr>
<tr>
<td><input class="checkbox" type="checkbox"/></td>
<td><input type="text" disabled="disabled"/></td>
</tr>
<tr>
<td><input class="checkbox" type="checkbox"/></td>
<td><input type="text" disabled="disabled"/></td>
</tr>
</table>
<script type="text/javascript">
$(function(){
$("input:checkbox").click(function(event){
$(this).closest("tr").find("input:text").prop("disabled",!$(this).prop("checked"));
});
});
</script>