Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery Effects show() method

jQuery Effects show() method

jQuery effects methods jQuery effects methods

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:

  • Millisecond
  • "slow"
  • "fast"
  • | | *easing* | Optional. Specifies the speed of the element at different points in the animation. The default is "swing".

    Possible values:

    **Tip:** More easing functions are available in extension plugins. | | *callback* | Optional. A function to be executed after the show() method finishes.

    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 jQuery effects methods