← Back to Index

.show()

Display the matched elements.

Examples

1. Show element

// <div class="box" style="display: none;"></div>
$('.box').show();

Result

<div class="box" style="display: block;"></div>

Details

Restores the display property to what it was before .hide() was called. If no previous state is stored, it tries to determine the default display for the element type (e.g., `block` for div, `inline` for span). It also correctly handles the SVG `display` attribute.

Returns: The original SR object for chaining.