Hi ....
I have a radiobutton list and a label in a webform.
<asp:radiobutto nlist id="one" runat="server" CssClass="text"
AutoPostBack="F alse" RepeatDirection ="Horizontal ">
<asp:ListItem Value="one">one </asp:ListItem>
<asp:ListItem Value="two">two </asp:ListItem>
<asp:ListItem Value="three">t hree</asp:ListItem>
<asp:ListItem Value="four">fo ur</asp:ListItem>
<asp:ListItem Value="five">fi ve</asp:ListItem>
</asp:radiobutton list>
<br>
<asp:Label id="Label1" runat="server" Visible=False>L abel</asp:Label>
I have set the AutoPostBack to False, as i want to be able to use the
keyboard to navigate thru' the RadioButtonList .
Once a particular radiobutton is selected, i want to be able to check with
RadioButton value selected and then display a hidden label.
On Page Load, i call the javascript function
ddPayer.Attribu tes.Add("onclic k", "check()")
where
<script language="javas cript">
function check(){
document.Form1. TextBox1.value = "test";
document.Form1. Label1.style.vi sibility = true; --- Drop an error here
}
</script>
I have been able to write a value to a textbox once any radiobutton has been
selected.
But i can't seem to trap the value of each of those radiobuttons, so i could
make it visible.
Any help is greatly appreciated.
--
Thank You,