Another solution without jquery is to use the property clientWidth available on HTMLElements
clientWidth
document.getElementById('test1').clientWidth