anujkk
anujkk

Reputation: 1353

Is there any cross browser way to get width of a DIV with scrollbars(if present)?

$('#div').width() returns the width of div without scrollbars. Is there any jquery or any other cross-browser solution that can return width of div with scrollbar? `

Upvotes: 0

Views: 37

Answers (1)

john Smith
john Smith

Reputation: 17906

yes it is,

check

$('#div').outerWidth(true)

http://api.jquery.com/outerWidth/

Upvotes: 1

Related Questions