Home »
MCQs »
jQuery MCQs
Which is the correct jQuery statement to hide all <div> elements?
9. Which is the correct jQuery statement to hide all <div> elements?
- $("div").hide()
- $(div).hide()
- $(".div").hide()
- $("#div").hide()
Answer: A) $("div").hide()
Explanation:
The $("div").hide() statement can be used to hide all <div> elements.