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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -