87,993
社区成员
发帖
与我相关
我的任务
分享
<div><input type="checkbox" onchange="fun(this)" /><input type="text" disabled /></div>
<div><input type="checkbox" onchange="fun(this)" /><input type="text" disabled /></div>
<div><input type="checkbox" onchange="fun(this)" /><input type="text" disabled /></div>
<script type="text/javascript">
function fun(t) {
t.nextSibling.disabled = !t.checked;
}
</script>