title: asp.net mvc4 jquery not working
body: <p>I'm trying to run a jquery code which was put in my <strong>_Layout.cshtml</strong> as below:</p>
  
  <pre><code>...............
  &lt;script type='text/javascript'&gt;
  $(document).ready(function () {
     alert('Test');
  
  });
  &lt;/script&gt;
    @Scripts.Render("~/bundles/jquery")
    @RenderSection("Scripts", required: false) 
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The above code wasn't fired and when I inspected with Chrome Dev, it showed <strong>$ is not defined</strong> ( I can see all my jquery, jquery ui files are loaded )</p>
  
  <p><strong>It worked</strong> if I put this code in an external js file</p>
  
  <p>I don't mind putting all my jquery code in external files, but really wanna clarify where I am doing wrong.</p>