🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 53 (from laksa098)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

📄
INDEXABLE
CRAWLED
1 hour ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://api.jquery.com/show/
Last Crawled2026-04-13 14:17:54 (1 hour ago)
First Indexed2013-08-16 13:30:09 (12 years ago)
HTTP Status Code200
Meta Title.show() | jQuery API Documentation
Meta Descriptionnull
Meta Canonicalnull
Boilerpipe Text
.show() Returns: jQuery Description: Display the matched elements. version added: 1.0 .show() This signature does not accept any arguments. version added: 1.0 .show( [duration ] [, complete ] ) duration (default: 400 ) A string or number determining how long the animation will run. complete A function to call once the animation is complete, called once per matched element. version added: 1.0 .show( options ) options A map of additional options to pass to the method. duration (default: 400 ) A string or number determining how long the animation will run. easing (default: swing ) A string indicating which easing function to use for the transition. queue (default: true ) A Boolean indicating whether to place the animation in the effects queue. If false, the animation will begin immediately. As of jQuery 1.7 , the queue option can also accept a string, in which case the animation is added to the queue represented by that string. When a custom queue name is used the animation does not automatically start; you must call .dequeue("queuename") to start it. specialEasing An object containing one or more of the CSS properties defined by the properties argument and their corresponding easing functions. (version added: 1.4 ) step A function to be called for each animated property of each animated element. This function provides an opportunity to modify the Tween object to change the value of the property before it is set. progress A function to be called after each step of the animation, only once per animated element regardless of the number of animated properties. (version added: 1.8 ) complete A function that is called once the animation on an element is complete. start A function to call when the animation on an element begins. (version added: 1.8 ) done A function to be called when the animation on an element completes (its Promise object is resolved). (version added: 1.8 ) fail A function to be called when the animation on an element fails to complete (its Promise object is rejected). (version added: 1.8 ) always A function to be called when the animation on an element completes or stops without completing (its Promise object is either resolved or rejected). (version added: 1.8 ) version added: 1.4.3 .show( duration [, easing ] [, complete ] ) duration (default: 400 ) A string or number determining how long the animation will run. easing (default: swing ) A string indicating which easing function to use for the transition. complete A function to call once the animation is complete, called once per matched element. With no parameters, the .show() method is the simplest way to display an element: 1 $( ".target" ).show(); The matched elements will be revealed immediately, with no animation. This is roughly equivalent to calling .css( "display", "block" ) , except that the display property is restored to whatever it was initially. If an element has a display value of inline , then is hidden and shown, it will once again be displayed inline . Note: If using !important in your styles, such as display: none !important , .show() will not override !important . It is recommended to use different classes with .addClass() , .removeClass() or .toggleClass() . Another approach is using .attr( "style", "display: block !important;" ) ; be careful, though, as it overwrites the style attribute of the element. When a duration, a plain object, or a "complete" function is provided, .show() becomes an animation method. The .show() method animates the width, height, and opacity of the matched elements simultaneously. Durations are given in milliseconds; higher values indicate slower animations, not faster ones. The strings 'fast' and 'slow' can be supplied to indicate durations of 200 and 600 milliseconds, respectively. As of jQuery 1.4.3, an optional string naming an easing function may be used. Easing functions specify the speed at which the animation progresses at different points within the animation. The only easing implementations in the jQuery library are the default, called swing , and one that progresses at a constant pace, called linear . More easing functions are available with the use of plug-ins, most notably the jQuery UI suite . If supplied, the callback is fired once the animation is complete. This can be useful for stringing different animations together in sequence. The callback is not sent any arguments, but this is set to the DOM element being animated. If multiple elements are animated, it is important to note that the callback is executed once per matched element, not once for the animation as a whole. Note: This method may cause performance issues, especially when used on many elements. If you're encountering such issues, use performance testing tools to determine whether this method is causing them. Moreover, this method can cause problems with responsive layouts if the display value differs at different viewport sizes. We can animate any element, such as a simple image: 1 2 3 4 5 6 7 8 9 10 < div id = "clickme" > Click here </ div > < img id = "book" src = "book.png" alt = "" width = "100" height = "123" > With the element initially hidden, we can show it slowly: $( "#clickme" ).on( "click", function() { $( "#book" ).show( "slow", function() { // Animation complete. }); }); Figure 1 - Illustration of the show() effect Additional Notes: All jQuery effects, including .show() , can be turned off globally by setting jQuery.fx.off = true , which effectively sets the duration to 0. For more information, see jQuery.fx.off . Examples: Example 1 Animates all hidden paragraphs to show slowly, completing the animation within 600 milliseconds. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 <!doctype html > < html lang = "en" > < head > < meta charset = "utf-8" > < title > show demo </ title > < style > p { background : yellow; } </ style > < script src = "https://code.jquery.com/jquery-4.0.0.js" > </ script > </ head > < body > < button > Show it </ button > < p style = "display: none" > Hello 2 </ p > < script > $( "button" ).on( "click" , function ( ) { $( "p" ).show( "slow" ); }); </ script > </ body > </ html > Demo: Example 2 Show the first div, followed by each next adjacent sibling div in order, with a 200ms animation. Each animation starts when the previous sibling div's animation ends. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 <!doctype html > < html lang = "en" > < head > < meta charset = "utf-8" > < title > show demo </ title > < style > div { background : #def3ca ; margin : 3px ; width : 80px ; display : none; float : left; text-align : center; } </ style > < script src = "https://code.jquery.com/jquery-4.0.0.js" > </ script > </ head > < body > < button id = "showr" > Show </ button > < button id = "hidr" > Hide </ button > < div > Hello 3, </ div > < div > how </ div > < div > are </ div > < div > you? </ div > < script > $( "#showr" ).on( "click" , function ( ) { $( "div" ).first().show( "fast" , function showNext ( ) { $( this ).next( "div" ).show( "fast" , showNext ); }); }); $( "#hidr" ).on( "click" , function ( ) { $( "div" ).hide( 1000 ); }); </ script > </ body > </ html > Demo: Example 3 Show all span and input elements with an animation. Change the text once the animation is done. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 <!doctype html > < html lang = "en" > < head > < meta charset = "utf-8" > < title > show demo </ title > < style > span { display : none; } div { display : none; } p { font-weight : bold; background-color : #fcd ; } </ style > < script src = "https://code.jquery.com/jquery-4.0.0.js" > </ script > </ head > < body > < button > Do it! </ button > < span > Are you sure? (type 'yes' if you are) </ span > < div > < form > < input type = "text" value = "as;ldkfjalsdf" > </ form > </ div > < p style = "display:none;" > I'm hidden... </ p > < script > function doIt ( ) { $( "span,div" ).show( "slow" ); } // Can pass in function name $( "button" ).on( "click" , doIt ); $( "form" ).on( "submit" , function ( event ) { if ( $( "input" ).val() === "yes" ) { $( "p" ).show( 4000 , function ( ) { $( this ).text( "Ok, DONE! (now showing)" ); } ); } $( "span,div" ).hide( "fast" ); // Prevent form submission event.preventDefault(); } ); </ script > </ body > </ html > Demo:
Markdown
- [jQuery](https://jquery.com/ "jQuery") - [jQuery UI](https://jqueryui.com/ "jQuery UI") - [jQuery Mobile](https://jquerymobile.com/ "jQuery Mobile") - [Sizzle](https://sizzlejs.com/ "Sizzle") - [QUnit](https://qunitjs.com/ "QUnit") - [Plugins](https://plugins.jquery.com/) - [Contribute](https://contribute.jquery.org/) - [CLA](https://cla.openjsf.org/) - [Style Guides](https://contribute.jquery.org/style-guide/) - [Bug Triage](https://contribute.jquery.org/triage/) - [Code](https://contribute.jquery.org/code/) - [Documentation](https://contribute.jquery.org/documentation/) - [Web Sites](https://contribute.jquery.org/web-sites/) - [Events](https://events.jquery.org/) - [Support](https://jquery.com/support/) - [Learning Center](https://learn.jquery.com/) - [Chat](https://jquery.com/support/) - [Stack Overflow](https://stackoverflow.com/tags/jquery/info) - [Report a bug](https://contribute.jquery.org/bug-reports/) - [OpenJS Foundation](https://openjsf.org/) - [Join](https://openjsf.org/join) - [Members](https://openjsf.org/members) - [jQuery Team](https://jquery.com/team) - [Governance](https://openjsf.org/governance) - [Conduct](https://code-of-conduct.openjsf.org/) - [Projects](https://openjsf.org/projects) ## [jQuery API Documentation](https://jquery.com/ "jQuery API Documentation") Navigation - [Download](https://jquery.com/download/) - [API Documentation](https://api.jquery.com/) - [Blog](https://blog.jquery.com/) - [Plugins](https://plugins.jquery.com/) - [Browser Support](https://jquery.com/browser-support/) - [Version Support](https://jquery.com/support/) # .show() *** Categories: [Effects](https://api.jquery.com/category/effects/) \> [Basics](https://api.jquery.com/category/effects/basics/) ## .show()Returns: [jQuery](http://api.jquery.com/Types/#jQuery) **Description:** Display the matched elements. - #### version added: [1\.0](https://api.jquery.com/category/version/1.0/)[.show()](https://api.jquery.com/show/#show) - This signature does not accept any arguments. - #### version added: [1\.0](https://api.jquery.com/category/version/1.0/)[.show( \[duration \] \[, complete \] )](https://api.jquery.com/show/#show-duration-complete) - **duration** (default: `400`) Type: [Number](http://api.jquery.com/Types/#Number) or [String](http://api.jquery.com/Types/#String) A string or number determining how long the animation will run. - **complete** Type: [Function](http://api.jquery.com/Types/#Function)() A function to call once the animation is complete, called once per matched element. - #### version added: [1\.0](https://api.jquery.com/category/version/1.0/)[.show( options )](https://api.jquery.com/show/#show-options) - **options** Type: [PlainObject](http://api.jquery.com/Types/#PlainObject) A map of additional options to pass to the method. - **duration** (default: `400`) Type: [Number](http://api.jquery.com/Types/#Number) or [String](http://api.jquery.com/Types/#String) A string or number determining how long the animation will run. - **easing** (default: `swing`) Type: [String](http://api.jquery.com/Types/#String) A string indicating which easing function to use for the transition. - **queue** (default: `true`) Type: [Boolean](http://api.jquery.com/Types/#Boolean) or [String](http://api.jquery.com/Types/#String) A Boolean indicating whether to place the animation in the effects queue. If false, the animation will begin immediately. **As of jQuery 1.7**, the queue option can also accept a string, in which case the animation is added to the queue represented by that string. When a custom queue name is used the animation does not automatically start; you must call `.dequeue("queuename")` to start it. - **specialEasing** Type: [PlainObject](http://api.jquery.com/Types/#PlainObject) An object containing one or more of the CSS properties defined by the properties argument and their corresponding easing functions. (version added: [1\.4](https://api.jquery.com/category/version/1.4/)) - **step** Type: [Function](http://api.jquery.com/Types/#Function)( [Number](http://api.jquery.com/Types/#Number) now, [Tween](http://api.jquery.com/Types/#Tween) tween ) A function to be called for each animated property of each animated element. This function provides an opportunity to modify the Tween object to change the value of the property before it is set. - **progress** Type: [Function](http://api.jquery.com/Types/#Function)( [Promise](http://api.jquery.com/Types/#Promise) animation, [Number](http://api.jquery.com/Types/#Number) progress, [Number](http://api.jquery.com/Types/#Number) remainingMs ) A function to be called after each step of the animation, only once per animated element regardless of the number of animated properties. (version added: [1\.8](https://api.jquery.com/category/version/1.8/)) - **complete** Type: [Function](http://api.jquery.com/Types/#Function)() A function that is called once the animation on an element is complete. - **start** Type: [Function](http://api.jquery.com/Types/#Function)( [Promise](http://api.jquery.com/Types/#Promise) animation ) A function to call when the animation on an element begins. (version added: [1\.8](https://api.jquery.com/category/version/1.8/)) - **done** Type: [Function](http://api.jquery.com/Types/#Function)( [Promise](http://api.jquery.com/Types/#Promise) animation, [Boolean](http://api.jquery.com/Types/#Boolean) jumpedToEnd ) A function to be called when the animation on an element completes (its Promise object is resolved). (version added: [1\.8](https://api.jquery.com/category/version/1.8/)) - **fail** Type: [Function](http://api.jquery.com/Types/#Function)( [Promise](http://api.jquery.com/Types/#Promise) animation, [Boolean](http://api.jquery.com/Types/#Boolean) jumpedToEnd ) A function to be called when the animation on an element fails to complete (its Promise object is rejected). (version added: [1\.8](https://api.jquery.com/category/version/1.8/)) - **always** Type: [Function](http://api.jquery.com/Types/#Function)( [Promise](http://api.jquery.com/Types/#Promise) animation, [Boolean](http://api.jquery.com/Types/#Boolean) jumpedToEnd ) A function to be called when the animation on an element completes or stops without completing (its Promise object is either resolved or rejected). (version added: [1\.8](https://api.jquery.com/category/version/1.8/)) - #### version added: [1\.4.3](https://api.jquery.com/category/version/1.4.3/)[.show( duration \[, easing \] \[, complete \] )](https://api.jquery.com/show/#show-duration-easing-complete) - **duration** (default: `400`) Type: [Number](http://api.jquery.com/Types/#Number) or [String](http://api.jquery.com/Types/#String) A string or number determining how long the animation will run. - **easing** (default: `swing`) Type: [String](http://api.jquery.com/Types/#String) A string indicating which easing function to use for the transition. - **complete** Type: [Function](http://api.jquery.com/Types/#Function)() A function to call once the animation is complete, called once per matched element. With no parameters, the `.show()` method is the simplest way to display an element: | | | |---|---| | 1 | | The matched elements will be revealed immediately, with no animation. This is roughly equivalent to calling `.css( "display", "block" )`, except that the `display` property is restored to whatever it was initially. If an element has a `display` value of `inline`, then is hidden and shown, it will once again be displayed `inline`. **Note:** If using !important in your styles, such as `display: none !important`, `.show()` will not override `!important`. It is recommended to use different classes with `.addClass()`, `.removeClass()` or `.toggleClass()`. Another approach is using `.attr( "style", "display: block !important;" )`; be careful, though, as it overwrites the style attribute of the element. When a duration, a plain object, or a "complete" function is provided, `.show()` becomes an animation method. The `.show()` method animates the width, height, and opacity of the matched elements simultaneously. Durations are given in milliseconds; higher values indicate slower animations, not faster ones. The strings `'fast'` and `'slow'` can be supplied to indicate durations of `200` and `600` milliseconds, respectively. As of jQuery 1.4.3, an optional string naming an easing function may be used. Easing functions specify the speed at which the animation progresses at different points within the animation. The only easing implementations in the jQuery library are the default, called `swing`, and one that progresses at a constant pace, called `linear`. More easing functions are available with the use of plug-ins, most notably the [jQuery UI suite](https://jqueryui.com/). If supplied, the callback is fired once the animation is complete. This can be useful for stringing different animations together in sequence. The callback is not sent any arguments, but `this` is set to the DOM element being animated. If multiple elements are animated, it is important to note that the callback is executed once per matched element, not once for the animation as a whole. **Note:** This method may cause performance issues, especially when used on many elements. If you're encountering such issues, use performance testing tools to determine whether this method is causing them. Moreover, this method can cause problems with responsive layouts if the display value differs at different viewport sizes. We can animate any element, such as a simple image: | | | |---|---| | 1 2 3 4 5 6 7 8 9 10 | | ![](https://api.jquery.com/resources/0042_06_01.png) ![](https://api.jquery.com/resources/0042_06_02.png) ![](https://api.jquery.com/resources/0042_06_03.png) ![](https://api.jquery.com/resources/0042_06_04.png) Figure 1 - Illustration of the `show()` effect ### Additional Notes: - All jQuery effects, including `.show()`, can be turned off globally by setting `jQuery.fx.off = true`, which effectively sets the duration to 0. For more information, see [jQuery.fx.off](https://api.jquery.com/jquery.fx.off/). ## Examples: ### Example 1 Animates all hidden paragraphs to show slowly, completing the animation within 600 milliseconds. | | | |---|---| | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | | #### Demo: ### Example 2 Show the first div, followed by each next adjacent sibling div in order, with a 200ms animation. Each animation starts when the previous sibling div's animation ends. | | | |---|---| | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | | #### Demo: ### Example 3 Show all span and input elements with an animation. Change the text once the animation is done. | | | |---|---| | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | | #### Demo: - [Ajax](https://api.jquery.com/category/ajax/) - [Global Ajax Event Handlers](https://api.jquery.com/category/ajax/global-ajax-event-handlers/) - [Helper Functions](https://api.jquery.com/category/ajax/helper-functions/) - [Low-Level Interface](https://api.jquery.com/category/ajax/low-level-interface/) - [Shorthand Methods](https://api.jquery.com/category/ajax/shorthand-methods/) - [Attributes](https://api.jquery.com/category/attributes/) - [Callbacks Object](https://api.jquery.com/category/callbacks-object/) - [Core](https://api.jquery.com/category/core/) - [CSS](https://api.jquery.com/category/css/) - [Data](https://api.jquery.com/category/data/) - [Deferred Object](https://api.jquery.com/category/deferred-object/) - [Deprecated](https://api.jquery.com/category/deprecated/) - [Deprecated 1.3](https://api.jquery.com/category/deprecated/deprecated-1.3/) - [Deprecated 1.7](https://api.jquery.com/category/deprecated/deprecated-1.7/) - [Deprecated 1.8](https://api.jquery.com/category/deprecated/deprecated-1.8/) - [Deprecated 1.9](https://api.jquery.com/category/deprecated/deprecated-1.9/) - [Deprecated 1.10 & 2.0](https://api.jquery.com/category/deprecated/deprecated-1.10-and-2.0/) - [Deprecated 3.0](https://api.jquery.com/category/deprecated/deprecated-3.0/) - [Deprecated 3.2](https://api.jquery.com/category/deprecated/deprecated-3.2/) - [Deprecated 3.3](https://api.jquery.com/category/deprecated/deprecated-3.3/) - [Deprecated 3.4](https://api.jquery.com/category/deprecated/deprecated-3.4/) - [Deprecated 3.5](https://api.jquery.com/category/deprecated/deprecated-3.5/) - [Deprecated 3.7](https://api.jquery.com/category/deprecated/deprecated-3.7/) - [Dimensions](https://api.jquery.com/category/dimensions/) - [Effects](https://api.jquery.com/category/effects/) - [Basics](https://api.jquery.com/category/effects/basics/) - [Custom](https://api.jquery.com/category/effects/custom-effects/) - [Fading](https://api.jquery.com/category/effects/fading/) - [Sliding](https://api.jquery.com/category/effects/sliding/) - [Events](https://api.jquery.com/category/events/) - [Browser Events](https://api.jquery.com/category/events/browser-events/) - [Document Loading](https://api.jquery.com/category/events/document-loading/) - [Event Handler Attachment](https://api.jquery.com/category/events/event-handler-attachment/) - [Event Object](https://api.jquery.com/category/events/event-object/) - [Form Events](https://api.jquery.com/category/events/form-events/) - [Keyboard Events](https://api.jquery.com/category/events/keyboard-events/) - [Mouse Events](https://api.jquery.com/category/events/mouse-events/) - [Forms](https://api.jquery.com/category/forms/) - [Internals](https://api.jquery.com/category/internals/) - [Manipulation](https://api.jquery.com/category/manipulation/) - [Class Attribute](https://api.jquery.com/category/manipulation/class-attribute/) - [Copying](https://api.jquery.com/category/manipulation/copying/) - [DOM Insertion, Around](https://api.jquery.com/category/manipulation/dom-insertion-around/) - [DOM Insertion, Inside](https://api.jquery.com/category/manipulation/dom-insertion-inside/) - [DOM Insertion, Outside](https://api.jquery.com/category/manipulation/dom-insertion-outside/) - [DOM Removal](https://api.jquery.com/category/manipulation/dom-removal/) - [DOM Replacement](https://api.jquery.com/category/manipulation/dom-replacement/) - [General Attributes](https://api.jquery.com/category/manipulation/general-attributes/) - [Style Properties](https://api.jquery.com/category/manipulation/style-properties/) - [Miscellaneous](https://api.jquery.com/category/miscellaneous/) - [Collection Manipulation](https://api.jquery.com/category/miscellaneous/collection-manipulation/) - [Data Storage](https://api.jquery.com/category/miscellaneous/data-storage/) - [DOM Element Methods](https://api.jquery.com/category/miscellaneous/dom-element-methods/) - [Setup Methods](https://api.jquery.com/category/miscellaneous/setup-methods/) - [Offset](https://api.jquery.com/category/offset/) - [Properties](https://api.jquery.com/category/properties/) - [Properties of jQuery Object Instances](https://api.jquery.com/category/properties/jquery-object-instance-properties/) - [Properties of the Global jQuery Object](https://api.jquery.com/category/properties/global-jquery-object-properties/) - [Removed](https://api.jquery.com/category/removed/) - [Selectors](https://api.jquery.com/category/selectors/) - [Attribute](https://api.jquery.com/category/selectors/attribute-selectors/) - [Basic](https://api.jquery.com/category/selectors/basic-css-selectors/) - [Basic Filter](https://api.jquery.com/category/selectors/basic-filter-selectors/) - [Child Filter](https://api.jquery.com/category/selectors/child-filter-selectors/) - [Content Filter](https://api.jquery.com/category/selectors/content-filter-selector/) - [Form](https://api.jquery.com/category/selectors/form-selectors/) - [Hierarchy](https://api.jquery.com/category/selectors/hierarchy-selectors/) - [jQuery Extensions](https://api.jquery.com/category/selectors/jquery-selector-extensions/) - [Visibility Filter](https://api.jquery.com/category/selectors/visibility-filter-selectors/) - [Traversing](https://api.jquery.com/category/traversing/) - [Filtering](https://api.jquery.com/category/traversing/filtering/) - [Miscellaneous Traversing](https://api.jquery.com/category/traversing/miscellaneous-traversal/) - [Tree Traversal](https://api.jquery.com/category/traversing/tree-traversal/) - [Utilities](https://api.jquery.com/category/utilities/) - [Version](https://api.jquery.com/category/version/) - [Version 1.0](https://api.jquery.com/category/version/1.0/) - [Version 1.0.4](https://api.jquery.com/category/version/1.0.4/) - [Version 1.1](https://api.jquery.com/category/version/1.1/) - [Version 1.1.2](https://api.jquery.com/category/version/1.1.2/) - [Version 1.1.3](https://api.jquery.com/category/version/1.1.3/) - [Version 1.1.4](https://api.jquery.com/category/version/1.1.4/) - [Version 1.2](https://api.jquery.com/category/version/1.2/) - [Version 1.2.3](https://api.jquery.com/category/version/1.2.3/) - [Version 1.2.6](https://api.jquery.com/category/version/1.2.6/) - [Version 1.3](https://api.jquery.com/category/version/1.3/) - [Version 1.4](https://api.jquery.com/category/version/1.4/) - [Version 1.4.1](https://api.jquery.com/category/version/1.4.1/) - [Version 1.4.2](https://api.jquery.com/category/version/1.4.2/) - [Version 1.4.3](https://api.jquery.com/category/version/1.4.3/) - [Version 1.4.4](https://api.jquery.com/category/version/1.4.4/) - [Version 1.5](https://api.jquery.com/category/version/1.5/) - [Version 1.5.1](https://api.jquery.com/category/version/1.5.1/) - [Version 1.6](https://api.jquery.com/category/version/1.6/) - [Version 1.7](https://api.jquery.com/category/version/1.7/) - [Version 1.8](https://api.jquery.com/category/version/1.8/) - [Version 1.9](https://api.jquery.com/category/version/1.9/) - [Version 1.11 & 2.1](https://api.jquery.com/category/version/1.11-and-2.1/) - [Version 1.12 & 2.2](https://api.jquery.com/category/version/1.12-and-2.2/) - [Version 3.0](https://api.jquery.com/category/version/3.0/) - [Version 3.1](https://api.jquery.com/category/version/3.1/) - [Version 3.2](https://api.jquery.com/category/version/3.2/) - [Version 3.3](https://api.jquery.com/category/version/3.3/) - [Version 3.4](https://api.jquery.com/category/version/3.4/) - [Version 3.5](https://api.jquery.com/category/version/3.5/) - [Version 3.6](https://api.jquery.com/category/version/3.6/) - [Version 3.7](https://api.jquery.com/category/version/3.7/) - [Version 4.0](https://api.jquery.com/category/version/4.0/) ### Books - [![Learning jQuery 4th Edition by Karl Swedberg and Jonathan Chaffer](https://api.jquery.com/wp-content/themes/jquery/content/books/learning-jquery-4th-ed.jpg) Learning jQuery Fourth Edition Karl Swedberg and Jonathan Chaffer](https://www.packtpub.com/en-us/product/learning-jquery-fourth-edition-9781782163152) - [![jQuery in Action by Bear Bibeault, Yehuda Katz, and Aurelio De Rosa](https://api.jquery.com/wp-content/themes/jquery/content/books/jquery-in-action.jpg) jQuery in Action Bear Bibeault, Yehuda Katz, and Aurelio De Rosa](https://www.manning.com/books/jquery-in-action-third-edition) - [![jQuery Succinctly by Cody Lindley](https://api.jquery.com/wp-content/themes/jquery/content/books/jquery-succinctly.jpg) jQuery Succinctly Cody Lindley](https://www.syncfusion.com/ebooks/jquery) - [Learning Center](https://learn.jquery.com/) - [Chat](https://jquery.com/support/) - [Twitter](https://twitter.com/jquery) - [GitHub](https://github.com/jquery) Copyright 2026 [OpenJS Foundation](https://openjsf.org/) and jQuery contributors. All rights reserved. See [jQuery License](https://jquery.com/license/) for more information. The [OpenJS Foundation](https://openjsf.org/) has registered trademarks and uses trademarks. For a list of trademarks of the [OpenJS Foundation](https://openjsf.org/), please see our [Trademark Policy](https://trademark-policy.openjsf.org/) and [Trademark List](https://trademark-list.openjsf.org/). Trademarks and logos not indicated on the [list of OpenJS Foundation trademarks](https://trademark-list.openjsf.org/) are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them. OpenJS Foundation [Terms of Use](https://terms-of-use.openjsf.org/), [Privacy](https://privacy-policy.openjsf.org/), [Code of Conduct](https://code-of-conduct.openjsf.org/), and [Cookie](https://www.linuxfoundation.org/cookies) Policies also apply. [Web hosting by Digital Ocean](https://www.digitalocean.com/) \| [CDN by Fastly](https://www.fastly.com/) \| [Powered by WordPress](https://wordpress.org/)
Readable Markdown
## .show()Returns: [jQuery](http://api.jquery.com/Types/#jQuery) **Description:** Display the matched elements. - #### version added: [1\.0](https://api.jquery.com/category/version/1.0/)[.show()](https://api.jquery.com/show/#show) - This signature does not accept any arguments. - #### version added: [1\.0](https://api.jquery.com/category/version/1.0/)[.show( \[duration \] \[, complete \] )](https://api.jquery.com/show/#show-duration-complete) - **duration** (default: `400`) A string or number determining how long the animation will run. - **complete** A function to call once the animation is complete, called once per matched element. - #### version added: [1\.0](https://api.jquery.com/category/version/1.0/)[.show( options )](https://api.jquery.com/show/#show-options) - **options** A map of additional options to pass to the method. - **duration** (default: `400`) A string or number determining how long the animation will run. - **easing** (default: `swing`) A string indicating which easing function to use for the transition. - **queue** (default: `true`) A Boolean indicating whether to place the animation in the effects queue. If false, the animation will begin immediately. **As of jQuery 1.7**, the queue option can also accept a string, in which case the animation is added to the queue represented by that string. When a custom queue name is used the animation does not automatically start; you must call `.dequeue("queuename")` to start it. - **specialEasing** An object containing one or more of the CSS properties defined by the properties argument and their corresponding easing functions. (version added: [1\.4](https://api.jquery.com/category/version/1.4/)) - **step** A function to be called for each animated property of each animated element. This function provides an opportunity to modify the Tween object to change the value of the property before it is set. - **progress** A function to be called after each step of the animation, only once per animated element regardless of the number of animated properties. (version added: [1\.8](https://api.jquery.com/category/version/1.8/)) - **complete** A function that is called once the animation on an element is complete. - **start** A function to call when the animation on an element begins. (version added: [1\.8](https://api.jquery.com/category/version/1.8/)) - **done** A function to be called when the animation on an element completes (its Promise object is resolved). (version added: [1\.8](https://api.jquery.com/category/version/1.8/)) - **fail** A function to be called when the animation on an element fails to complete (its Promise object is rejected). (version added: [1\.8](https://api.jquery.com/category/version/1.8/)) - **always** A function to be called when the animation on an element completes or stops without completing (its Promise object is either resolved or rejected). (version added: [1\.8](https://api.jquery.com/category/version/1.8/)) - #### version added: [1\.4.3](https://api.jquery.com/category/version/1.4.3/)[.show( duration \[, easing \] \[, complete \] )](https://api.jquery.com/show/#show-duration-easing-complete) - **duration** (default: `400`) A string or number determining how long the animation will run. - **easing** (default: `swing`) A string indicating which easing function to use for the transition. - **complete** A function to call once the animation is complete, called once per matched element. With no parameters, the `.show()` method is the simplest way to display an element: | | | |---|---| | 1 | | The matched elements will be revealed immediately, with no animation. This is roughly equivalent to calling `.css( "display", "block" )`, except that the `display` property is restored to whatever it was initially. If an element has a `display` value of `inline`, then is hidden and shown, it will once again be displayed `inline`. **Note:** If using !important in your styles, such as `display: none !important`, `.show()` will not override `!important`. It is recommended to use different classes with `.addClass()`, `.removeClass()` or `.toggleClass()`. Another approach is using `.attr( "style", "display: block !important;" )`; be careful, though, as it overwrites the style attribute of the element. When a duration, a plain object, or a "complete" function is provided, `.show()` becomes an animation method. The `.show()` method animates the width, height, and opacity of the matched elements simultaneously. Durations are given in milliseconds; higher values indicate slower animations, not faster ones. The strings `'fast'` and `'slow'` can be supplied to indicate durations of `200` and `600` milliseconds, respectively. As of jQuery 1.4.3, an optional string naming an easing function may be used. Easing functions specify the speed at which the animation progresses at different points within the animation. The only easing implementations in the jQuery library are the default, called `swing`, and one that progresses at a constant pace, called `linear`. More easing functions are available with the use of plug-ins, most notably the [jQuery UI suite](https://jqueryui.com/). If supplied, the callback is fired once the animation is complete. This can be useful for stringing different animations together in sequence. The callback is not sent any arguments, but `this` is set to the DOM element being animated. If multiple elements are animated, it is important to note that the callback is executed once per matched element, not once for the animation as a whole. **Note:** This method may cause performance issues, especially when used on many elements. If you're encountering such issues, use performance testing tools to determine whether this method is causing them. Moreover, this method can cause problems with responsive layouts if the display value differs at different viewport sizes. We can animate any element, such as a simple image: | | | |---|---| | 1 2 3 4 5 6 7 8 9 10 | | ![](https://api.jquery.com/resources/0042_06_01.png) ![](https://api.jquery.com/resources/0042_06_02.png) ![](https://api.jquery.com/resources/0042_06_03.png) ![](https://api.jquery.com/resources/0042_06_04.png) Figure 1 - Illustration of the `show()` effect ### Additional Notes: - All jQuery effects, including `.show()`, can be turned off globally by setting `jQuery.fx.off = true`, which effectively sets the duration to 0. For more information, see [jQuery.fx.off](https://api.jquery.com/jquery.fx.off/). ## Examples: ### Example 1 Animates all hidden paragraphs to show slowly, completing the animation within 600 milliseconds. | | | |---|---| | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | | #### Demo: ### Example 2 Show the first div, followed by each next adjacent sibling div in order, with a 200ms animation. Each animation starts when the previous sibling div's animation ends. | | | |---|---| | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | | #### Demo: ### Example 3 Show all span and input elements with an animation. Change the text once the animation is done. | | | |---|---| | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | | #### Demo:
Shard53 (laksa)
Root Hash657907979407719853
Unparsed URLcom,jquery!api,/show/ s443