Javascipt: How can I change the class of a div by clicking another div? : I want to make a div appear when clicking on another div. I was thinking of doing this by using JavaScript to change the class of a div when another div is clicked on.



This is the HTML of the div I want to appear:

    <div id ="menutext1" class - "hidden"> </div>
This is the HTML of the control div (the one to click on to make the above div appear):
    
    <div id ="menu1"> </div>	
    



This is the CSS:

    .hidden { display: none; }

    .unhidden { display: block; }


I've looked everywhere and nothing seems to work for me!

I don't have much experience with JavaScript or JQuery but can understand it. 

Thanks in advance :))