1. Home
  2. Computer Science MCQs
  3. Jquery
  4. Which jQuery method is used to hide selected elements?

Added 30 Jan 2024

Which jQuery method is used to hide selected elements?

  1. hide() Correct answer
  2. visible(false)
  3. invisible()
  4. toggleVisibility(false)

Correct answer

A. hide()

15 views

MCQSEXAM

Explanation

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.

Reference

https://www.w3schools.com/jquery/default.asp

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Jquery MCQs

Practise all Jquery MCQs

Similar MCQs