小编Mik*_*ike的帖子

有没有办法禁用标签?

我正在使用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>
Run Code Online (Sandbox Code Playgroud)

所以我希望能够点击链接,而不是选择与之关联的单选按钮.在IE中它工作正常,但在Firefox中,单击链接时将选择单选按钮.我真的不需要标签来实际选择合适的单选按钮,所以有没有办法在javascript或asp或C#代码的某个地方禁用它们?

javascript c# asp.net

6
推荐指数
1
解决办法
1546
查看次数

标签 统计

asp.net ×1

c# ×1

javascript ×1