jQuery: Detecting presence of a scroll bar in a DIV

Posted by Roberto Sebestyen on Stack Overflow See other posts from Stack Overflow or by Roberto Sebestyen
Published on 2010-04-15T17:55:52Z Indexed on 2010/04/15 18:43 UTC
Read the original article Hit count: 180

Filed under:

I want to detect the presence of a scroll bar in a DIV using jQuery. I was thinking to use $('div').scrollTop() but that returns 0 in both cases when the scroll bar is at the top and when there is no scroll bar at all.

Any ideas guys?

© Stack Overflow or respective owner

Related posts about jQuery