I created a div with CSS styling.
.comment-list {
margin: 20px 0;
max-height: 100px;
min-height: 100px;
overflow-y: scroll;
width: 100%;
background-color:#000;
}
Here is the HTML code for the div:
<div class="comment-list"> </div>
When the content in the div exceeds its height, a scroll bar appears. How can I use jQuery to determine if the scroll bar is present or not?
You can view an example at this link: http://jsfiddle.net/0p0k3f2h/
In the demo provided in the above link, I have shown the div both with and without content.