I'm not sure exactly what you are looking for, but I believe that it is either scrollWidth or clientWidth div with id box1.
Both are JavaScript properties and do not need jQuery to be retrieved, but can be caught in jQuery with the following $('#box1')[0] . All this returns the first element (and if you use only ID) only the DOM from the jQuery selector.
If you want to know the width of the contents of box1, regardless of the scrollbar, you will probably find $('#box1')[0].scrollWidth . If you are looking for the width available and displayed in field1, you are looking for $('#box1')[0].clientWidth .
I played your violin so you can see how in action. http://jsfiddle.net/arosen/xp9hD/
Aaron
source share