P
pierre
Can anyone tell me how to get the SelectedValue from a ASP.net
RadioButtonList, using javavscript.
Here is my code:
<ASP:RADIOBUTTONLIST id="optOption" runat="server"
ONCLICK="javascript:alert(document.all.optOption.selectedItem);"></ASP:RADIOBUTTONLIST>
This is not working. I am getting an error saying that
'document.all.optOption.selectedItem is null or not an object'.
Thanks in advance,
Pierre
RadioButtonList, using javavscript.
Here is my code:
<ASP:RADIOBUTTONLIST id="optOption" runat="server"
ONCLICK="javascript:alert(document.all.optOption.selectedItem);"></ASP:RADIOBUTTONLIST>
This is not working. I am getting an error saying that
'document.all.optOption.selectedItem is null or not an object'.
Thanks in advance,
Pierre