"#business" is currently set to background: #323232; How can I change it to #000; after I click on "#business" and back to 323232 once the menu is closed?
$(document).ready(function() {
$("#business").click(function(){
jQuery.fx.off = true;
$("#businessmenu").toggle("");
});
$('html').click(function() {
$("#businessmenu").hide("");
});
$('#business').click(function(event){
event.stopPropagation();
});
});
Here is the html:
<a href="#" id="business">Biz name</a>
<div id="businessmenu">
<a href="help.html">Help</a>
</div>