jQuery show: Main Tips
- The jQuery
.show()method makes the selected element visible. - It makes jQuery unhide what was hidden using .hide().
Displaying Hidden Elements
The jQuery .show() function turns the selected element visible. Usually, it is the same element that was previously hidden by using .hide().
In the example below, you can make jQuery show div element by clicking a button:
You can use .show jQuery method without any parameters for a simple display function with no animation. However, you may also use additional parameters to animate it:
$("selector").show(length, easing, callback);
There are three parameters you may add for jQuery .show:
lengthrepresents the animation duration in milliseconds (400by default). Keyword values may also be used:slowrepresents 600 ms,fast- 200 ms.easingis defined by keywords:linearmeans consistent animation speed, andswingbegins slow, then speeds up.callbackspecifies a function to execute after the.showjQuery animation finishes.