Friday, February 28, 2014

jQuery / Hide or show elements on page

How to hide and show some element on page using jQuery?
We can do that using jQuery method: hide() or show().
It will add css style - "display: none;" or "display: block;"


jQuery
 

 

 

 
 
     
    Hide element 
Show element
Some div content

There is also other way to hide and show elements on www page.
You can use jQuery method: toggle(). See HERE

No comments: