I have this simple html file with little bit of jQuery in it but click event is not triggered here:
I am not getting any error and neither the console.log statement that I expect to print when click event is triggered. Did I miss out on something?
<!doctype html>
 <html>
  <head>
      <title>My WebPage</title>
      <link rel="stylesheet" type="text/css" href="Day.css"/>
      <link rel="stylesheet" type="text/css" href="Night.css"/>
  </head>
    <body>
        <h1> My website </h1>
        <button>Day</button>
        <button>Night</button>
        <script src="jquery.js"/>
       <script>
           (function(){
            console.log('Inside func');
              $('button').click(function() {
              console.log('button was clicked');
              });
            })();
       </script>
    </body>
 </html>
 
     
     
    