Focal Point
Default selection in dynamically populated radio buttons?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5051058551

February 24, 2006, 09:42 AM
Moogle
Default selection in dynamically populated radio buttons?
Hi Team,

Is there a way to set a default selection on a radio button group that is populated dynamically?

Right now it is defaulting to the alphabetically first name on the list, and I want it to default to a specific one.

TIA,

Joey
February 24, 2006, 11:01 AM
smiths
Joey,

If the ID of the radio button element is, for example "button1", then you would want something like

document.getElementById("button1").checked = true;

Regards,
Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode