<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#p_test").hide();
});
});
</script>
</head>
<body>
<p id="p_test">Hide paragraph.</p>
<button>Click</button>
</body>
</html>
The element Selector in jQuery
minify code