我有一个asp.net
网站,在联系我们的表格上,有2个字段(电话号码:,电子邮件地址)和2个单选按钮(首选的联系方式-电话/电子邮件)。我想要的是在这些字段为空时禁用单选按钮,并在它们中有值时启用它们。
我希望单选按钮成为启用当用户开始输入这些字段,如果他们然后删除值,为他们被禁用,所以我知道它需要使用JQuery或JavaScript,但不知道如何做到这一点。