Id Selector in JQuery

  1. !DOCTYPE html>  
  2. <html>  
  3.     <head>  
  4.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>  
  5.         <script>    
  6. $(document).ready(function(){    
  7.     $("button").click(function(){    
  8.         $("#para").hide();    
  9.     });    
  10. });    
  11. </script>  
  12.     </head>  
  13.     <body>  
  14.         <h2>c# corner</h2>  
  15.         <p id="para">c-sharpcorner.com</p>  
  16.         <button>Click me</button>  
  17.     </body>  
  18. </html>