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

13. Which is the correct jQuery selector statement to select all <div> elements?

  1. $(".div")
  2. $("#div")
  3. $("div")
  4. $("<div>")

Answer: C) $("div")

Explanation:

The statement $("div") is the correct syntax to select all <div> elements.

Comments and Discussions!

Load comments ↻






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