【问题标题】:Is there a way to make a radio button uncheckable?有没有办法使单选按钮无法选中?
【发布时间】:2022-01-05 04:08:58
【问题描述】:

我想知道是否有任何方法可以使 HTML 单选按钮无法检查。就像,当用户按下它时,什么也没有发生。

提前致谢!

【问题讨论】:

标签: html radio-button checked


【解决方案1】:

您可以使用disabled 属性。

<input type="radio" id="contactChoice1" name="contact" value="email" disabled>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-05-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-02
    • 1970-01-01
    • 2021-06-12
    相关资源
    最近更新 更多