Florian Stascheck: Concatenation: Javascript-Syntax durch Syntax erstellen

Beitrag lesen

Hallo,

alert(document.formdata[z + "_" + sp].value;);
Erst mal so, du musst hier die Array-variante nehmen,
2. Eine gültige ID / ein gültiger Name beginnt nicht mit einer Zahl, alo nicht 4_3 sondern z.B. fld_4_3
3. document.getElementById ist moderner

mfg, Flo

--
Developers are dying. Computers are getting trash. CEO's become forgetten. The only remaining things are ideas, lies and crises. So if you want to be immortal, first think, than stop it and go to microsoft and become later a manager at Lehman Brothers...
sh:) fo:| ch:? rl:( br:^ n4:| ie:{ mo:| va:} de:> zu:} fl:{ ss:) ls:< js:|
*Zu dem de:> Ich benutze wegen IE im moment noch tabellen, weil dieser display:table noch nicht versteht. Ich werde aber, wenn IE 6 & IE 7 < 10% mein neues CSS-Layout einspielen...