Establecer atributo en JavaScript
//Fetch id from html
var a = document.getElementById("id");
//variable.setAttribute("Attributes","Properties:Values")
a.setAttribute("style", "visibility:hidden;");
Kumaran KM