Source Code:
Result:
Display the inner width of div
innerWidth() - returns the inner width of an element (includes padding).
Edit the code above and click "Submit Code" to see the result.
W3Schools.com
- Try it yourself