jQuery if and logic
- by danit
I have a simple jQuery toolbar, the basic functionality is:
Hover: Background change to defined value & add .active class
OnClick: Move the icon down 4px, and change background of the toolbar to that of the element
What I would like to do move the icon down 4px when it has the class 'active' applied, however also remove the onclick event?
Somehow I need an 'IF' statement in my jQuery for the Onclick event.