Question:

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
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

jQuery is a popular JavaScript library that simplifies HTML DOM tree traversal and manipulation, as well as event handling and animation.
To control the visibility of HTML elements, jQuery provides several methods:
(A) `.hide()`: This function makes the selected elements invisible. By default, it works by setting the CSS `display` property of the element to `none`. It can also take arguments to create an animation effect over a specified duration. The complementary function is `.show()`.
(B) `.remove()`: This function completely removes the selected elements from the DOM. They are not just hidden; they are gone.
(C) `notDisplay()`: This is not a standard jQuery function.
(D) `invisible()`: This is not a standard jQuery function.
Therefore, the jQuery function used to make an element invisible is `hide()`.
Was this answer helpful?
0
0