jQuery hide() Method
jQuery hide() Method
The hide() method is used to hide the selected elements. It is much more similar to display none CSS property. For showing them again, we have to use the show() method.
Syntax:-
Its syntax is:- $(selector).hide(speed, easing, callback)
Further Explanation:-
Parameter | Description |
---|---|
speed | Optional. Specifies the speed of the fading effect. The default is 400 milliseconds. |
easing | Optional. Specifies the speed of the element at different points of the animation. The default is swing. |
callback | Optional. A function to be executed after the hide() method is completed. |