May 07, 2021 jQuery
Hide, show, switch, slide, fade in and out, and animate, wow!
Click the Show/Hide panel
Because time is precious, we provide fast and convenient learning methods.
At W3CSchool, you can learn what you need.
jQuery hide()
A simple jQuery hide() method demo.
jQuery hide()
Another example of hide().
Demonstrates how to hide text.
With jQuery, you can hide() and show() methods to hide and display HTML elements:
Grammar:
The optional speed parameter specifies the speed of hiding/displaying, and the following values can be taken: "slow," "fast," or milliseconds.
The optional callback parameter is the name of the function executed after hiding or displaying.
The following example demonstrates the hide() method with the speed parameter:
With jQuery, you can use the toggle() method to switch between the hide() and show() methods.
Displays hidden elements and hides displayed elements:
Grammar:
The optional speed parameter specifies the speed of hiding/displaying, and the following values can be taken: "slow," "fast," or milliseconds.
The optional callback parameter is the name of the function executed after the toggle() method is completed.
Optional callback parameter with three points of instruction: