Is there a way to disable a label?

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-03-18T19:02:04Z Indexed on 2010/03/18 19:21 UTC
Read the original article Hit count: 345

Filed under:
|
|

I am using an asp radio button group to list out answers in a form. Here is an example of the structure (I know the text doesn't make sense, bare with me).

<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>

So I want to be able to click on the links and not have the radiobutton associated with it become selected. In IE it works fine but in Firefox the radio button will be selected when i click on the link. I don't really need the label to actually select the proper radio button so is there a way to just disable them either in javascript or somewhere in the asp or C# code?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript