Hi,
$(document).ready(function () {
$(':radio').bind("change", function () {
$('#HyperLink1').attr("href", $(this).val());
});
});
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem Text="CNN" Value="http://www.cnn.com"></asp:ListItem>
<asp:ListItem Text="BBC" Value="http://www.bbc.co.uk"></asp:ListItem>
<asp:ListItem Text="Channel News Asia" Value="http://www.channelnewsasia.com"></asp:ListItem>
</asp:RadioButtonList>
<br />
<asp:HyperLink ID="HyperLink1" runat="server">Click here!</asp:HyperLink>
Regards,
Prathap.
Hariinakoti, if this helps please login to Mark As Answer. |
Reply | Alert Moderator