Radio disabled 属性
Radio 对象
实例
实例 1
禁用单选框按钮:
<script>
document.getElementById("cats").disabled=true;
</script>
输出结果:
尝试一下 »
定义和用法
disabled 属性可设置或返回是否禁用单选按钮。
被禁用的元素既不可用,也不可点击。可以设置 disabled 属性,直到满足某些其他的条件为止(比如选择了一个复选框等等)。
语法
Set the disabled property:
element.disabled=true|false
Return the disabled property:
浏览器支持





所有主要浏览器都支持 disabled 属性
Radio 对象
点我分享笔记