Home » jquery » Jquery toggle an element

Jquery toggle an element

toggle is a method which is used to show and hide the selected class. if select element is hidden then on toggle it will show element.
If element is not hidden on toggle it will hide the element.

Output

We can also specify the toggle time and function to perform task of toggle done

Output

Please follow and like us:
error