codeGK
Code it ALL
jQuery slideToggle() - CodeGK

♦ jQuery slideToggle()

♣ Example3: jQuery slideToggle()

slideToggle() method is used to slide Up or slide Down the HTML element interchangeably depending upon the current state of displaying.
Below is the representation of slideToggle() Syntax.
Basic Syntax
$(selector).slideDown(speed,callback);
selector: the element selector
speed: speed of slide Toggling, can be slow,fast or milliseconds
callback: function call after slide Toggling
In this example, slideToggle() method is illustrated.
Example
Input:
Output: