The code below is suppose to have a menu which is hidden until #menubutton is clicked on, but clicking on it is not revealing the menu. It used to work but has stopped and I have no idea why. It works in Chrome but not in Firefox.
<a id='menubutton' href="#">
<img src="/wp-content/themes/helpline/images/mobilemenu.png">
<div id='menubuttontext'>
Menu
</div>
</a>
<ul id='menucontainer'>
<li><a href='/'>Home</a></li>
<li><a href='/services/'>Services</a></li>
<li><a href='/about-us/'>About us</a></li>
<li><a href='/procedures/'>Procedures</a></li>
<li><a href='/call-back/'>Request a call back</a></li>
<li><a href='/contact/'>Contact Us</a></li>
</ul>
<script type="text/javascript">
var inout="0";
$("#menubutton").click(function () {
if(inout=="0"){
$("#menucontainer").show("slow");
inout="1";
}else{
$("#menucontainer").hide();
inout="0";
}
});
</script>
CSS:
#menucontainer {
display: none;
}