jQuery outerWidth() Method
jQuery outerWidth() Method
The outerWidth() method is used to return the outer width of the FIRST matched element. It includes both the element width, padding of its x-axis if present, and border width. If the parameter is set to true, it will also include the margin of its x-axis.
Syntax:-
Its syntax is:- $(selector).outerWidth(includeMargin)
Further Explanation:-
Parameter | Description |
---|---|
includeMargin | Optional. A Boolean value specifying whether or not to include the margin
|