Gernot Back: onchange mit eval?

Beitrag lesen

Hallo Christoph,

function switchphonenumber()
{
 for (var i=0;i<document.myform.eval(formdata[cent]).options.value.length;i++)

Das gehört da gleube ich nicht hin:                             ^^^^^^

if (document.myform.eval(formdata[cent]).options.value[i].selected==true)

und da auch nicht                                   ^^^^^^

document.myform.textfeld.value=document.myform.eval(formdata[cent]).options.value[i].value

Da ist es auch doppelt                                                                   ^^^^^^

}

Gruß Gernot