Given a div that has a scrollbar in it (e.g. b/c of overflow:auto), how do I get the accurate innerWidth of the element? In my example: http://jsfiddle.net/forgetcolor/2J7N
You can make another div by copying your original div, then get the width etc. Something like:
var saveDiv = $('').html($('#box2').html());
saveDiv.innerWidth will give you 0