Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

jquery
javascript
hide

What is the jQuery hide() method?

Educative Answers Team

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

The jQuery hide() method is used to hide ​selected HTML elements from the display. It takes in three arguments:

  • speed: how long it will take to hide the specified element.
  • easing: the easing function for the transition.
  • complete: the function to call after the animation is completed.

The following illustration goes over the syntax:

svg viewer

Code

The following code snippet shows how to use the hide() method. When the “show less” button is clicked, details about jQuery will be hidden:​

Console

RELATED TAGS

jquery
javascript
hide
Copyright ©2022 Educative, Inc. All rights reserved

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring