Demo For: jQuery .toggleClass() Method Examples
This is MY DIV 1
NOTE: In this demo, the toggle class for the button may not be that apparent as its styles are being overwritten by the purple class.
This is MY DIV 2. Toggle this Div and animate it.
NOTE: In order for the animation to work and show properly for the above Div animation, you will have to include the jQuery UI library.