91-9990449935 0120-4256464 |
jQuery width()jQuery width() method is used to return or set the width of matched element. To return width: When this method is used to return the width, it returns the width of first matched element. To set width:When this method is used to set the width, it sets the width for every matched element. This method is one of a jQuery dimension. List of jQuery dimension:
Syntax: To return the width: To set the width: To set the width using a function: Parameters of jQuery width() method
Example of jQuery width() methodLet's take an example to demonstrate the effect of jQuery width() method. To return width: Test it NowjQuery width() example 2To set width: Test it Now
Next TopicjQuery height()
|