I am trying to create a menu bar off of my unordered list and i cant figure out why the js doesnt work. i got the fuction from w3c.
here is my js file
<style>
#menu,#submenu
{
padding:5px;
text-align:center;
background-color:#e5eecc;
border:solid 1px #c3c3c3;
}
#menu
{
padding:50px;
display:none;
}
</style>
<script>
$(document).ready(function(){
$("#menu").click(function(){
$("#submenu").slideDown("slow");
});
$("#menu").hover(function(){
$("#submenu").slideUp("slow");
});
});
</script>
and this is my html file that i am trying to create the menu off of
<ul id="menu">
<li>Change text</li>
<li>Super Hero</li>
<ul id="submenu"">
<li>Color Theme</li>
</ul>
</ul>
i know you can use spry but the class im in the professor wants us to create one manually