get total width of element including padding and border using jquery code example
Example: get total width of element including padding and border using jquery
$(elem).outerWidth(); // Returns the width + padding + borders
$(elem).outerWidth( true ); // Returns the width + padding + borders + margins