The matched elements will be revealed or hidden immediately, with no animation, by changing the CSS display property. For jQuery versions lower than 1. How do I toggle CSS with jQuery ? Query toggle css property value (not class)?
Query CSS - Toggle a specified class when an element is clicked.
In this way, it creates the toggle effect. It also facilitates you to specify to only add or only remove by the use of switch parameter. Reading time min. JQuery animate() toggle click.
A jQuery plugin that toggles CSS classes from each element in the set of matched elements after a function has been execute with or without. Note: show() works on elements hidden with jQuery methods and display:none in CSS (but not visibility:hidden).