Layout Options

  • Fixed Header
    Makes the header top fixed, always visible!
  • Fixed Sidebar
    Makes the sidebar left fixed, always visible!
Introduction
Webconcept

Description

The .hide() method hides all visible, selected elements.

This method changes the element's height, width, margin, padding and opacity from visible to hidden


v1.0

This method has the form:

.hide()

Return Value

This form returns a jQuery object.


v1.0

This method has the alternate form:

.hide(speed,callback)
Parameter Description
speed (required) Specifies the speed of the hide effect. (default = "0").

Possible values:

  • milliseconds (like 1500)
  • "slow"
  • "normal"
  • "fast"
callback (optional) A function to be executed after the hide() method is completed.

Return Value

This form returns a jQuery object.


v1.4.3

This method has the alternate form:

.hide(speed,easing,callback)
Parameter Description
speed Specifies the speed of the hide effect. (default = "0").

Possible values:

  • milliseconds (like 1500)
  • "slow"
  • "normal"
  • "fast"
easing (optional) A string indicating which easing function to use for the transition.
callback (optional) A function to be executed after the hide() method is completed.

Return Value

This form returns a jQuery object.

Examples

Hide a p element:

$(".btn1").click(function(){
  $("p").hide();
});