Home »
MCQs »
jQuery MCQs
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"?
- $("new").hide()
- $(new).hide()
- $(".new").hide()
- $("#new").hide()
Answer: C) $(".new").hide()
Explanation:
The $(".new").hide() statement can be used to hide all elements having class name "new".