Which jQuery method is used to hide selected elements?
Correct answer
A. hide()
15 views
A. hide()
15 views
hide() hides the selected elements by setting their CSS display to none: $("p").hide();. An optional duration turns it into an animation, e.g. hide(400).
Its counterparts are show() and toggle(). The other options are not jQuery methods.
Keep preparing with more Computer Science MCQs on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.