Hmmm. Off the top of my head ... if the div has id="foo", something like this:

if ($('#foo')[0].scrollWidth < $('#foo').width()) {
  // the scroll bar is showing.
}


--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Jul 14, 2008, at 12:03 PM, fambi wrote:


Hi all. Assuming a div has overflow: auto, how can I know whether the
scroll bar is showing or not?
Thanks

Reply via email to