We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

hellolabs on 09/19/07


Tagged

showhide


Versions (?)


Who likes this?

6 people have marked this snippet as a favorite

luman
bartekk
francisre
gedittest
martingoldszein
blackabee


JQuery: show/hide


Published in: JavaScript 


  1. // show/hide
  2.  
  3. $(document).ready(function(){
  4.  
  5. $('#uploadbutton').show();
  6. $('#uploadpanel').hide();
  7. $('#uploadcontrols').hide();.
  8.  
  9. $('#uploadbutton').click(function(){
  10. $('#uploadbutton').hide();
  11. $('#uploadpanel').slideDown('slow');
  12. $('#uploadcontrols').fadeIn('slow');
  13. return false;
  14.  
  15. });

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: hellolabs on November 12, 2007

hgdghgf

You need to login to post a comment.