Which is the correct jQuery statement to hide all elements having class name 'new'?

10. Which is the correct jQuery statement to hide all elements having class name "new"?

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

Answer: C) $(".new").hide()

Explanation:

The $(".new").hide() statement can be used to hide all elements having class name "new".

Comments and Discussions!

Load comments ↻






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