wahsaga: "toFixed" funktioniert nicht

Beitrag lesen

hi,

document.form.Eingabe6.value = eval(document.form.pop3.value) * 0.15;

Was soll denn das eval() dort?

Wie kann ich jetzt sinnvoll das toFixed(2) einbauen?

neuerWert = document.form.pop3.value * 0.15;
document.form.Eingabe6.value = neuerWert.toFixed(2);

gruß,
wahsaga

--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }