I created RadioButtons by using RadioButton Group builder with help of RichDataDefination.
But unable to get value.
Any one Please suggest me on this. It's urgent.. Please reply ASAP.
Pinned topic Issue while fetching the selected radio button value in java script
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-11-16T13:36:07Z at 2012-11-16T13:36:07Z by kachi
Dinger 0600015X1A117 Posts
Re: Issue while fetching the selected radio button value in java script2012-09-04T15:27:53ZThis is the accepted answer. This is the accepted answer.Hi MudhuAnne,
I think you've already solved this, but I'll post the solution we discussed. It allows you to get the selected radio value using only the name of the RadioGroup (which you know). You don't have to know the (generated) IDs of the radio buttons.
var retVal = null;
var radios = document.getElementsByName(radioGroupName);
if (radios && radios.length > 0)
for (var i = 0; i < radios.length; i++)
if (radios[i].type == 'radio' && radios[i].selected)
retVal = radios[i].value;
kachi 270004DF7Y23 Posts
Re: Issue while fetching the selected radio button value in java script2012-11-16T13:36:07ZThis is the accepted answer. This is the accepted answer.Hi MudhuAnne,
Small correction for mentioned code as I have tested mentioned code it is not working,radios[i].checked
is working fine.