Easy Tutorial
❮ Jquery Plugin Tooltip Ajax Ajaxcomplete ❯

jQuery innerWidth() Method

jQuery HTML/CSS Methods

Example

Return the inner width of a <div> element:

$("button").click(function(){
    alert($("div").innerWidth());
});

Definition and Usage

The innerWidth() method returns

As shown in the image below, this method includes padding but excludes border and margin.


Related Methods:


Syntax


More Examples

Display Dimensions Using Related Methods


jQuery HTML/CSS Methods

❮ Jquery Plugin Tooltip Ajax Ajaxcomplete ❯