Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set attribute in javascript

//Fetch id from html
var a = document.getElementById("id");

//variable.setAttribute("Attributes","Properties:Values")
a.setAttribute("style", "visibility:hidden;");
 
PREVIOUS NEXT
Tagged: #set #attribute #javascript
ADD COMMENT
Topic
Name
2+6 =