Your Local Geek Corner

Jed: wow. Radio buttons ARE fun
Dave: and HOW!
Jed: to get to the value of one dynamically?

elementName = String(document.forms[frmName].elements[i].name);
document.forms[frmName].elements[elementName][j].checked

THEN

if(document.forms[frmName].elements[elementName][j].checked)
{
document.forms["holder"].elements[currField].value =
document.forms[frmName].elements[elementName][j].value;
}

so simple

Dave: it was so obvious, how could I have missed it?

(for those of you without your sarcasm detectors on, this was off the scale.)

Comments

Popular Posts