+ 4
add class to element
With document.createElement I can create an element, but how can I add a class to that element?
1 Odpowiedź
+ 9
element.className = name;
With document.createElement I can create an element, but how can I add a class to that element?