javascript - Pure JS add class not working -
i've got site i'm making , has code in html:
<div id="close" onclick="close()"></div>
there's js has this:
function close() { document.getelementbyid("glass1").setattribute("class", "hidden"); }
but when click close doesn't seem work. can see site @ http://galaxy-os.koding.com see mean. please help
your element id
colliding function name close
.
i recommend changing function name sounds way generic anyway.
Comments
Post a Comment