jquery get element width

JavaScript
$('#element').width();$(".example").width("px");// Returns width of HTML document
$( document ).width();
Source

Also in JavaScript: