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.
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
2 replies Latest Post - 2012-11-16T13:36:07Z by kachi
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 PostsACCEPTED ANSWER
Re: Issue while fetching the selected radio button value in java script2012-09-04T15:27:53Z in response to MadhuAnneHi 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 270004DF7Y20 Posts