Andreas Schneider: document.VAR.value dynamisch?

Beitrag lesen

Hallo Mickey,

function ChangeValues(Row) {
   document.formname.InputZeile+Row.value='test1';
   document.formname.InputZeile2+Row.value='test2';

document.formname.elements["InputZeile" + Row].value = 'test1';
document.formname.elements["InputZeile2" + Row].value = 'test1';

}

Grüße
Andreas

--
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
(Rich Cook)