Posted By

Armin on 04/25/13


Tagged


Versions (?)

Show hide jquery


 / Published in: jQuery
 

Show hide

  1. $('#toggle_message').click(function(){
  2. var value=$('#toggle_message').attr('value');
  3. $('#message').toggle('fast');
  4.  
  5. if(value=='Hide'){
  6. $('#toggle_message').attr('value','Show');
  7. }
  8. else if(value=='Show'){
  9. $('#toggle_message').attr('value','Hide');
  10. }
  11. });

Report this snippet  

You need to login to post a comment.