Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 24th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jQuery Reveal elements after hidden
  2. $('#hide').click(function(){
  3.     $('body > :not(#reveal)').not(this).hide();
  4.     $("#test1").add(this).appendTo("body");    
  5. });
  6.  
  7. $('#reveal').click(function(){
  8.     $('body').show();
  9. });
  10.        
  11. $('#reveal').click(function(){
  12.     $('body').children().show();
  13.     // or  $('body > *').show();
  14. });