how to add attribute by id in javascript code example
Example: set property dom javascrpt
document.getElementsByTagName("H1")[0].setAttribute("class", "democlass");
document.getElementsByTagName("H1")[0].setAttribute("class", "democlass");