var elem = document.createElement("INPUT"); for (var i in filters[0]) elem.setAttribute(i, filters[i][0]);