If we are using ASP.NET Radiobuttonlist in our page it becomes a little difficult to find the instance of it through Javascript because it is rendered in a different way in the browser ( the code is reproduced below )
ASP.net Code
<asp:RadioButtonList ID=“RadioButtonList1” runat=“server” RepeatLayout=“Table”>
<asp:ListItem Text=“AAA”></asp:ListItem>
<asp:ListItem Text=“BBB”></asp:ListItem>
</asp:RadioButtonList>
Is rendered in browser as :
<table id=“RadioButtonList1” border=“0”>
<tr>
<td><input id=“RadioButtonList1_0” type=“radio” name=“RadioButtonList1” value=“AAA” /><label for=“RadioButtonList1_0”>AAA</label></td>
</tr>
<tr>
<td><input id=“RadioButtonList1_1” type=“radio” name=“RadioButtonList1” value=“BBB” /><label for=“RadioButtonList1_1”>BBB</label></td>
</tr>
</table>