title: jquery button click event in cshtml page
body: <p>I am new to mvc so not sure how we can handle button click event on client side using mvc application and jquery. I want to write some jquery code for button click event but dn't know exactly where to put this in cshtml page. Below is my code :</p>
  
  <pre><code>&lt;p&gt; 
   &lt;input type="button" value="Create" id="btnSave"/&gt;
  &lt;/p&gt;
      (at the bottom of cshtml page)  :
      @section Scripts {
          @Scripts.Render("~/Scripts/jquery-1.8.2.js")
          @Scripts.Render("~/Scripts/Owner.js")
      }
  </code></pre>
  
  <p>And in Owner.js which I have included above, the code is :</p>
  
  <pre><code>$(document).ready(function () {
  
      $('#btnSave').click(function () {
          alert('click');
  
      });
  });
  </code></pre>
  
  <p>But i am not able to get the pop up message as "Click" on button click as I have coded. Please correct me if i have done something wrong.</p>