jQuery outerWidth() method is used to return the outer width of the first matched
The jQuery outerWidth () method works for both visible and hidden elements.
In the above image, you can see that jQuery outerWidth() method includes border and padding both.
Syntax:
| Parameter | Description |
|---|---|
| includeMargin | It is an optional parameter. It is a Boolean value which specifies whether to include the margin or not.
|
Let's take an example to demonstrate the effect of jQuery outerWidth() method.
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India