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?

  1. innerWidth() and innerHeight()
  2. width() and height()
  3. cssWidth() and cssHeight()
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.