.hide() | jQuery button hide
Description:Hidethematchedelements.Withnoparameters,the.hide()methodisthesimplestwaytohideanelement:Thematchedelementswillbehiddenimmediately,withnoanimation.Thisisroughlyequivalenttocalling.css("display","none"),exceptthatthevalueofthedisplaypropertyissavedinjQuerysdatacachesothatdisplaycanlaterberestoredtoitsinitialvalue.Ifanelementhasadisplayvalueofinlineandishiddenthenshown,itwillonceagainbedisplayedinline.Whenaduration,aplainobject,ora"complete"functionisprovided,.hide()becomesananimati...
Description: Hide the matched elements.
With no parameters, the .hide() method is the simplest way to hide an element:
The matched elements will be hidden immediately, with no animation. This is roughly equivalent to calling .css( "display", "none" ), except that the value of the display property is saved in jQuerys data cache so that display can later be restored to its initial value. If an element has a display value of inline and is hidden then shown, it will once again be displayed inline.
When a duration, a plain object, or a "complete" function is provided, .hide() becomes an animation method. The .hide() method animates the width, height, and opacity of the matched elements simultaneously. When these properties reach 0, the display style property is set to none to ensure that the element no longer affects the layout of the page.
Durations are given in milliseconds; higher values indicate slower animations, not faster ones. The...