Leser: 1
![]() |
|< 1 2 3 >| | ![]() |
24 Einträge, 3 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
newInput = document.createElement("input"); //Art des Elementes
element = nameValue.parentNode; //Ortangabe des Elementes
element.appendChild(newInput);
element = element.lastChild;
var bType = document.createAttribute("type"); //Erstellen der Attribute...
bType.nodeValue = "text";
var bName = document.createAttribute("name");
bName.nodeValue = "name";
var bValue = document.createAttribute("value");
bValue.nodeValue = nameValue.nodeValue;
var bSize = document.createAttribute("size");
bSize.nodeValue = 15;
var bMaxL = document.createAttribute("maxlenght");
bMaxL.nodeValue = 35;
element.setAttributeNode(bType);
element.setAttributenode(bName); /hier kommt der Fehler
element.setAttributeNode(bValue);
element.setAttributeNode(bSize);
element.setAttributeNode(bMaxL);
var bMaxL = document.createAttribute("maxlenght");
![]() |
|< 1 2 3 >| | ![]() |
24 Einträge, 3 Seiten |