Detecting presence of a scroll bar in a DIV
- by Roberto Sebestyen
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?