Documentation

Hide

From jQuery JavaScript Library

Jump to: navigation, search

.hide() function - DOM manipulation

This function hide the matching elements on the page. What it does is to set the display configuration to 'none'. You can set a speed for the disappearance 'fast', 'normal' or 'slow' and a callback function being executed after the affect is allowed.

Example

 $("#class_div").hide();


Before

 
  <div id='class_div'>Hello world</div>
  <div id='class_div_2'>Hello world</div>
  


After:

 
  <div id='class_div' style="display:none;">Hello world</div>
  <div id='class_div_2'>Hello world</div>
  



Links



Thales Jacobi 17:57, 10 July 2008 (PDT)

Retrieved from "http://docs.jquery.com/Hide"