jQuery Tutorial


jQuery Example


jQuery References


jQuery slideToggle() Effect Reference


  All jQuery Effect References


Uses

jQuery slideToggle() effect method toggles between slideUp() and slideDown() To Change the Height for selected element from hidden to visible or visible to hide.


Syntax

$(selector).slideToggle(speed,[callback])

jQuery slideToggle() effect supported following parameters.

ParameterDescription
speed speed is Optional parameter. speed define hide the effect.
Specific Speed Values:
  • "slow"
  • "normal"
  • "fast"
  • "1000" (milliseconds)
callback Callback is optional parameter. It is use to represents a function to be executed whenever effect is completed.

jQuery slideToggle() effect Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("#click").click(function(){
    $("#slide").slideToggle("slow");
  });
});
<script>
Online Try This Code Your Self....   »

  All jQuery Effect References