Total width of element (including padding and border) in jQuery
As in the subject, how can one get the total width of an element, including its border and padding, using jQuery? I've got the jQuery dimensions plugin, and running .width() on my 760px-wide, 10px padding DIV returns 760. Perhaps I'm doing something wrong, but if my element manifests itself as 780 pixels wide and Firebug tells me that there's 10px padding on it, but calling .width() only gives 760, I'd be hard pressed to see how. Thanks for any suggestions. Andreas Grech [Update] The original answer was written prior to jQuery 1.3, and the functions that existed at the time where not adequate