1 Replies - 983 Views - Last Post: 06 February 2012 - 02:22 PM

simple if/else-if not working

Posted 06 February 2012 - 02:12 PM

I am trying to basically make a toggle button on the first button click i need it to move down on the second button click move back up to the original position. I am simply just trying to make the button have a state by changing the class. So first click it removes the up class and adds the down class. On the second click it removes the down class and adds the up class. for some reason the it removes the up class and adds the down but it will not do the opposite