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