♦ 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.width() : method for returning width
Example
Input:
Output: