Hello
I have a radiobutton declared as:
and i am trying to reference it with a variable. So far i have tried the following unsuccesfully:
Could you tell me why?
thanks
I have a radiobutton declared as:
Code:
<asp:radiobutton id="rdbWeek" runat="server" Text="Weekly" TextAlign="Right" GroupName="rent" Enabled="False"></asp:radiobutton>
and i am trying to reference it with a variable. So far i have tried the following unsuccesfully:
Code:
var radio1 = document.getElementById('rdbWeek');
var radio1 = document.forms[0].rdbWeek;
var radio1 = document.all['rdbWeek']
Could you tell me why?
thanks