!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#para").hide();
});
});
</script>
</head>
<body>
<h2>c# corner</h2>
<p id="para">c-sharpcorner.com</p>
<button>Click me</button>
</body>
</html>In this code snippet you will learn how to use Id selector in JQuery.
