Thread Frage zu Javascript (10 answers)
Opened by renee at 2008-06-23 16:55

Struppi
 2008-06-23 18:48
#111386 #111386
User since
2006-02-17
628 Artikel
BenutzerIn
[Homepage]
user image
Das geht einfacher:
Code: (dl )
1
2
3
4
5
6
7
8
9
var obj = {};

for( var i = 0; i < elem_form.elements.length; i++ ){
var elem = elem_form.elements[i];
var e_name = elem.name || "";
var e_value = elem.value;
if(e_name == "") continue;
obj[e_value] = e_value;
}

View full thread Frage zu Javascript