1. Home
  2. Computer Science MCQs
  3. Jquery
  4. What is the purpose of the slideUp() function in jQuery?

Added 30 Jan 2024

What is the purpose of the slideUp() function in jQuery?

  1. Makes an element visible with a sliding effect
  2. Slides down an element
  3. Hides an element with a sliding effect Correct answer
  4. Animates an element to move up

Correct answer

C. Hides an element with a sliding effect

16 views

MCQSEXAM

Explanation

slideUp() hides an element with a sliding effect by animating its height down to zero.

slideDown() reveals an element the same way and slideToggle() switches between the two. All accept a duration and a callback, e.g. $("#box").slideUp(500).

Practise more Computer Science MCQs with answers and explanations on MCQsExam.com.

Reference

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

Doubts & discussion

Not sure why the answer is C? 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