codeGK
Code it ALL
jQuery width() - CodeGK

♦ jQuery width()

♣ Example1: jQuery width()

width() method returns the width of the HTML element selected.
Note that padding, margin and border is not included for calculation of the width.
Below is the representation of jQuery width() Syntax.
Basic Syntax
$(selector).width()
Syntax Explanation:
selector : HTML element selector
width() : method for returning width
In this example, jQuery width() method is illustrated.
Example
Input:
Output:
Dimensions