Home »
MCQs »
jQuery MCQs
Which jQuery methods are used to get or set the width and height of an HTML element including the paddings and borders?
86. Which jQuery methods are used to get or set the width and height of an HTML element including the paddings and borders?
- outerWidth() and outerHeight()
- width() and height()
- cssWidth() and cssHeight()
- elementWidth() and elementHeight()
Answer: A) outerWidth() and outerHeight()
Explanation:
The jQuery methods outerWidth() and outerHeight() are used to get or set the width and height of an HTML element including the paddings and borders.