jquery element width

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

Also in JavaScript: