B
Bill via DotNetMonster.com
Hi
I have a RadioButtonList and the value of each radio button is an image.
How can I arrange it so that clicking on an image selects the corresponding
radio button?
Thanks
Bill
<asp:RadioButtonList id="payment" runat="server"
RepeatDirection="Horizontal">
<asp:ListItem><a href="javascript:selRadioButton(0);"><img
src=images/Mastercard.png width="26" height="16" border="0"
alt="Mastercard®"></a> </asp:ListItem>
<asp:ListItem><img src=images/Visa.jpg width="25" height="16"
border="0" alt="Visa®"> </asp:ListItem>
<asp:ListItem><img src=images/Bankcard.jpg width="25"
height="16" border="0" alt="Bankcard®"></asp:ListItem>
</asp:RadioButtonList>
I have a RadioButtonList and the value of each radio button is an image.
How can I arrange it so that clicking on an image selects the corresponding
radio button?
Thanks
Bill
<asp:RadioButtonList id="payment" runat="server"
RepeatDirection="Horizontal">
<asp:ListItem><a href="javascript:selRadioButton(0);"><img
src=images/Mastercard.png width="26" height="16" border="0"
alt="Mastercard®"></a> </asp:ListItem>
<asp:ListItem><img src=images/Visa.jpg width="25" height="16"
border="0" alt="Visa®"> </asp:ListItem>
<asp:ListItem><img src=images/Bankcard.jpg width="25"
height="16" border="0" alt="Bankcard®"></asp:ListItem>
</asp:RadioButtonList>