我正在使用一个ASP单选按钮组在表单中列出答案。以下是结构示例。
<asp:RadioButtonList id="Q2" runat="server">
<asp:ListItem Text="Go to <a target='_blank' href='http:www.google.com'>Google</a>" Value="a"></asp:ListItem>
<asp:ListItem Text="Go to <a target='_blank' href='http:www.yahoo.com'>Yahoo</a>" Value="a"></asp:ListItem>
</asp:RadioButtonList>
我希望能够点击链接而不会导致相关的单选按钮被选中。在IE中这个功能可以正常工作,但是在Firefox中,当我点击链接时,单选按钮会被选中。我并不需要标签实际上选择正确的单选按钮,所以有没有一种方法可以在JavaScript或ASP或C#代码中禁用它们?