Home »
MCQs »
jQuery MCQs
Which is the correct jQuery statement to hide all elements having id name 'new'?
11. Which is the correct jQuery statement to hide all elements having id name "new"?
- $("new").hide()
- $(new).hide()
- $(".new").hide()
- $("#new").hide()
Answer: D) $("#new").hide()
Explanation:
The $("#new").hide() statement can be used to hide all elements having id name "new".