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 HTML equivalent to ASP.NET RadioButtonList, is a set of with the same name attribute(based on ID property of the RadioButtonList).
You can access this group of radio buttons using getElementsByName. This is a collection of radio buttons, accessed through their index.
alert( document.getElementsByName('RadioButtonList1') [0].checked );