Posted By

paul0078 on 04/15/12


Tagged

css javascript is jquery visible


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

hurcy


jQuery if statement with .is


 / Published in: JavaScript
 

  1. if ($('section:nth(1) p').is(':visible')) {
  2. $(this).html('Hide');
  3. }
  4. else
  5. {
  6. $(this).html('Show');
  7. }

Report this snippet  

You need to login to post a comment.