February 24, 2006, 09:42 AM
MoogleDefault 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
smithsJoey,
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