Question:medium

Which jQuery function is used to make an element invisible?

Show Hint

Remember the jQuery pairs for visibility: `.hide()` and `.show()` control the display. `.fadeOut()` and `.fadeIn()` control the opacity. `.remove()` deletes the element entirely.
Updated On: Jul 2, 2026
  • hide()
  • remove()
  • notDisplay()
  • invisible()
Show Solution

The Correct Option is A

Solution and Explanation

Step 1: Recall the matched pair of jQuery visibility methods.
jQuery offers show and hide as a matched pair specifically for toggling how visible an element appears on the page, without removing it from the underlying document.
Step 2: See how hide actually works under the hood.
Calling hide sets the element's CSS display property to none, which makes it disappear visually while keeping it present in the DOM so it can be shown again later using show.
Step 3: Contrast this with the similar sounding alternative.
remove goes much further by deleting the element from the DOM entirely, so it cannot simply be redisplayed afterward, while notDisplay and invisible are not real jQuery methods at all, which leaves hide as the correct function for making an element invisible.
\[ \boxed{\text{hide()}} \]
Was this answer helpful?
0