127
rated 0 times
[
131]
[
4]
/ answers: 1 / hits: 78254
/ 16 Years ago, mon, february 23, 2009, 12:00:00
I have an ASP.NET web page with a databound RadioButtonList. I do not know how many radio buttons will be rendered at design time. I need to determine the SelectedValue on the client via JavaScript. I've tried the following without much luck:
var reasonCode = document.getElementById(RadioButtonList1);
var answer = reasonCode.SelectedValue;
(answer is being returned as undefined)
Please forgive my JavaScript ignorance, but what am I doing wrong?
Thanks in advance.
More From » asp.net