The slideDown() Method in jQuery is used to check the visibility of selected elements or to show the hidden elements. It works on two types of hidden elements:
- Elements hidden using using jQuery methods.
- Elements hidden using display: none in CSS.
Syntax:
$(selector).slideDown( speed, easing, callback )
Parameters: This method accepts three parameters as mentioned above and described below:
- Speed: It is an optional parameter and used to specify the speed of the fading effect. The default value of speed is 400 millisecond. The possible value of speed are:
- milliseconds
- “slow”
- “fast”
- easing: It is an optional parameter and used to specify the speed of element to different points of animation. The default value of easing is “swing”. The possible value of easing are:
- “swing”
- “linear”
- callback: It is optional parameter. The callback function is executed after slideDown() method is completed.
Below example illustrates the slideDown() method in jQuery:
Example: This example display the hidden element by using slideDown() method.
<!DOCTYPE html> <html> <head> <title> jQuery slideDown() Method </title> <script src= </script> <!-- Script to illustrate slideDown() method --> <script> $(document).ready(function() { $(".geek").click(function() { $("h1").slideDown(); }); }); </script> </head> <body> <!-- hide element using CSS --> <h1 style = "display:none" > GeeksforGeeks </h1> <button class="geek"> Click on button to slide down </button> </body> </html> |
Output:
Before clicking on the button:

After clicking on the button:

Recommended Posts:
- jQuery | jQuery.fx.interval Property with example
- jQuery | jQuery.fx.off Property
- jQuery | jQuery.support Property
- jQuery | jquery Property
- jQuery UI | position() Method
- JQuery | parseHTML() method
- jQuery | add() method with Example
- jQuery | not() method with Examples
- jQuery | ajaxStart() Method
- JQuery UI | Progressbar method
- jQuery | get() Method
- jQuery | fadeIn() Method
- jQuery | delegate() Method
- jQuery | outerHeight() Method
- jQuery | event.isDefaultPrevented() Method
- jQuery | outerWidth() Method
- jQuery | before() Method
- jQuery | off() Method
- jQuery | html() Method
- jQuery | triggerHandler() Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

