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?

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

Comments and Discussions!

Load comments ↻






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