Skip to main content

.noPaddingWidth()

.noPaddingWidth(Boolean margin = false): int

Returns the width of the first matching element with/without margins and borders, but including padding.

console.log( 'Width without padding and margin: ', $( "div" ).noPaddingWidth() );
console.log( 'Width without padding, including margin ', $( "div" ).noPaddingWidth(true) );