I have created an object with a list of attributes to add to html tag. I wanted to add these to a created element. This is the code
var up = {class:"upt", name:"positive_use",type:"text"};
createtextarea = document.createElement("TEXTAREA");
How to add these objects to the element. And how do you add more than one dynamically.