Hi,
please use following javascript to get selected radio button value
function GetSelectedRadioOption(rbList)
{
var iIndex=0;
while(document.getElementById(rbList + '_' + iIndex))
{
if (document.getElementById(rbList + '_' + iIndex).checked)
{
var selected = document.getElementById(rbList + '_' + iIndex).value;
return selected;
}
iIndex=iIndex+1;
}
}
[quoted text, click to view] "Suresh.P.R" wrote:
> Hi,
>
> While using the RadioButtonList control, that I populated in the runtime, I
> am not able to get the selected item in the javascript while referring
>
> document.Form.RadioButtonList.value.
>
> What is the solution.
> The DropDownList control is able to refer in javascript like
> document.Form.DropDownList.value
>
> Please instruct me.
> =====================Suresh
>
Hi Sameer Chandargi,
It is working fine. Thanks.
======================Suresh.P.R
[quoted text, click to view] "Sameer Chandargi" wrote:
> Hi,
>
> please use following javascript to get selected radio button value
> function GetSelectedRadioOption(rbList)
> {
> var iIndex=0;
> while(document.getElementById(rbList + '_' + iIndex))
> {
> if (document.getElementById(rbList + '_' + iIndex).checked)
> {
> var selected = document.getElementById(rbList + '_' + iIndex).value;
> return selected;
> }
> iIndex=iIndex+1;
> }
> }
>
>
> "Suresh.P.R" wrote:
>
> > Hi,
> >
> > While using the RadioButtonList control, that I populated in the runtime, I
> > am not able to get the selected item in the javascript while referring
> >
> > document.Form.RadioButtonList.value.
> >
> > What is the solution.
> > The DropDownList control is able to refer in javascript like
> > document.Form.DropDownList.value
> >
> > Please instruct me.
> > =====================Suresh
> >
Don't see what you're looking for? Try a search.