Is it possible to check the overflow:auto of a div?
overflow:auto
For example:
HTML
I should change a little thing of what Reigel said:
(function($) { $.fn.hasScrollBar = function() { return this[0] ? this[0].scrollHeight > this.innerHeight() : false; } })(jQuery);
innerHeight counts control's height and its top and bottom paddings