您现在的位置是:首页 > 电脑技术查询 > web开发

怎么用 js 让 <tr> 不可用?

编辑:chaxungu时间:2022-10-02 23:20:19分类:web开发

如何用 js 让 <tr> 不可用? 在线等!
<form name=a>
<tabled>
<tr id=cs>
<td> asdada </td>
</tr>
</table>
</form>

求一个 js 把 id 为“cs "的行 diabled!

为什么直接用 a.cs.disabled=true 不行呢?

------解决方案--------------------
<tr> 不可用是什么意思?是指让改行的控件不可用吗?还是让改行不响应事件?
document.getElementById( "cs ").disabled= true;可以使tr行变灰.