Javatpoint Logo
Javatpoint Logo

jQuery innerWidth()

jQuery innerWidth() method is used to return the inner width of the first matched

element without including border and margin.

This method includes padding but excludes border and margin.

This image explains that jQuery innerWidth () method includes padding but not border and margin.

Syntax:

Example of jQuery innerWidth() method

Let's take an example to demonstrate the jQuery innerWidth() method.

Test it Now

jQuery innerWidth() example 2

Let's take an example to demonstrate the effect of jQuery innerWidth() method.

Test it Now



Let's Work Together!

Javatpoint is passionate to offer better content to the world. Please mail your contribution to contribute@javatpoint.com. We will show your name and create your user profile. You can contribute the following things:
  • Article on Any Topic (which is not available on Javatpoint)
  • Your Interview Experience on Company
  • Company Interview Questions with Answers
  • Recruitment Process of Company
  • Programs, and Algorithm
  • Videos
  • Test Paper
  • Improve Article

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials