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 -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -