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 -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -