I've got a problem with the toggle event. As you can see with this jsfiddle, I'm trying to create the yosemite menu bar with jquery.
I'm using :
$('.apple-button').click(function(event){
event.stopPropagation();
});
I want the apple logo to return black when I click again on it. It only returns black when I click somewhere else. I know that I should have used the background property of my button to insert the image but I'm sure we can do it like this.
I tried to create a boolean to know if the button is active or not, but it doesn't work..
Any help ? Thanks
htmlclick event. You can find the fiddle here