Akio Satoh | Web/Graphic Design and Development ServicesAkio Satoh | Web/Graphic Design and Development Services

Log In | Create New Account | Contact | Site Map
  • Biography

Navigation

  • Feed aggregator

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password

Recent blog posts

  • PHP - How to Display All Errors
  • The Golden Ratio
  • CSS Header Comment
  • How to scroll to top of window with jQuery
  • How to generate a random number with Javascript
  • How to check if an element is visible with jQuery
  • How to check which version of jQuery is loaded
  • How to check if jQuery is already loaded
  • jQuery Plugin Template Code
  • How to get the browser user agent with Javascript
more
Home › Blogs › Akio Satoh's blog

How to check if an element is visible with jQuery

if( $('#foo').is(':visible') ) {
    // it's visible, do something
}
else {
    // it's not visible so do something else
}
  • Akio Satoh's blog
  • Send to friend
  • PDF version

Top of the page

© 2011 Akio Satoh - All Rights Reserved.
Powered by Drupal, an open source content management system