jQuery Effects show() method
Example
Show all hidden elements
element:
$
(
"
button
"
)
.
click
(
function
(
)
{
$
(
"
p
"
)
.
show
(
)
;
}
)
;
Try it »
Definition and Usage
The show() method displays the hidden selected elements.
**Note:** show() works with elements hidden via jQuery methods and display:none in CSS (not with elements hidden via visibility:hidden).
**Tip:** To hide elements, see the hide() method. hide() method.
Syntax
$(
selector
).show(
speed,easing,callback
)
| Parameters | Description |
|---|---|
| speed | Optional. Specifies the speed of the showing effect.
Possible values: |
Possible values:
- "swing" - Moves slowly at the beginning/end, and faster in the middle
- "linear" - Moves at a constant speed
To learn more about callback, please visit our jQuery Callback chapter on callbacks.
|More examples
show() - Using the speed parameter
How to use the speed parameter when hiding/showing elements.
show() - Using the callback parameter
How to use the callback parameter when hiding/showing elements.
jQuery effects methods