Home >>jQuery Tutorial >jQuery hidden Selector
jQuery hidden selector in jQuery is used to selects hidden elements.
Form elements with type="hidden"
Set to display:none
Width and height set to 0
Syntax:$(":hidden")Here is an Example of jQuery :hidden Selector
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("p:hidden").show(3500);
});
</script>
</head>
<body>
<p>This is First paragraph.</p>
<p>This is Second paragraph.</p>
<p style="display:none;">This is a hidden paragraph that is slowly shown.</p>
</body>
</html>
This is First paragraph.
This is Second paragraph.