.show() displays matched elements (since jQuery 1.0). With no arguments it is instant and restores the display value saved by .hide() — so inline, block, flex, and others come back correctly. With a duration it becomes an animation.
Syntax
Start with these common calls. Keep them short and readable.
jQuery
$(".target").show() // instant
$("p").show("slow") // 600ms animation
$("#box").show(200, function () {}) // duration + complete
// Not the same as always forcing block:
// .css("display", "block") vs restore saved display
// Pair with the opposite:
$(".panel").hide()
$(".panel").show()
Call
What it does
show()
Learn jQuery .show(): reveal hidden elements instantly or with animation, restore saved display values, durations, callbacks, examples, pitfalls, and FAQs.
Load jQuery before your script (CDN or local file), then wrap DOM work in $(function () { ... }) when needed.
Parameters
Parameter
Description
Step 1
Select the element(s) you want to reveal.
Step 2
Call .show() for an instant reveal, or pass a duration / options.
Step 3
Optionally add a complete callback (runs once per matched element).
Return Value
Return Value
Description
jQuery object
Most setters and traversing helpers return the jQuery collection so you can chain more methods.
jQuery Examples
Example 1 — Instant .show()
Reveal a hidden element immediately with no animation.
this. Inside the function, this is the DOM element.
Frequently Asked Questions
.show() displays matched elements. With no arguments it is instant and restores the display value saved by .hide() (or a sensible default). With a duration or options it animates width, height, and opacity. Returns the jQuery collection. Available since jQuery 1.0.
.css('display', 'block') always forces block. .show() restores the saved display — so an inline span becomes inline again. Prefer .show() after .hide() for correct layout.
.hide() sets display: none and saves the old display. .show() reverses that. Pair them for menus, modals, and panels.
Yes. Pass milliseconds, 'slow' (600ms), or 'fast' (200ms). You can also pass easing (1.4.3+), an options object, and a complete callback (once per matched element).
No. Prefer class toggles with .addClass() / .removeClass() / .toggleClass(). Forcing style with !important overwrites the style attribute and is usually a last resort.
Set jQuery.fx.off = true. All effects, including .show(), then run with zero duration. Useful for tests or reduced motion.