.show()
Published Aug 4, 2022Updated Aug 4, 2022
Contribute to Docs
The .show()
method shows a hidden HTML element.
Syntax
$(selector).show(speed, callback);
selector
: Specifies the elements that will be shown.speed
(optional): Can be “slow” or “fast” or the number of milliseconds.callback
(optional): A function that is called once the element is displayed.
Example
The following jQuery code will show the element selected with #hide
when the #show
element is clicked:
$("#show").click(function() {$("#hide").show();});
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn JavaScript on Codecademy
- Career path
Full-Stack Engineer
A full-stack engineer can get a project done from start to finish, back-end to front-end.Includes 51 CoursesWith Professional CertificationBeginner Friendly150 hours - Free course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner Friendly15 hours