Which is the correct jQuery statement to hide all <div> elements?

9. Which is the correct jQuery statement to hide all <div> elements?

  1. $("div").hide()
  2. $(div).hide()
  3. $(".div").hide()
  4. $("#div").hide()

Answer: A) $("div").hide()

Explanation:

The $("div").hide() statement can be used to hide all <div> elements.

Comments and Discussions!

Load comments ↻






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