jQuery Tutorial


jQuery Example


jQuery References


jQuery hide() Effect Reference


  All jQuery Effect References


Uses

jQuery hide() effect hide all selected elements.


Syntax

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

jQuery hide() 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 hide() effect Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("#btn1").click(function(){
    $("p").hide();
  });
  $("#btn2").click(function(){
    $("p").show();
  });  
});
<script>
Online Try This Code Your Self....   »

  All jQuery Effect References