title: MVC4 jquery scripting
body: <p>I am used to MVC2... Where you simply add your links to scripts and your sources to the view and just call the jquery function and viola... You have working Jquery code.  But I am unable to get my jqGrid tableToGrid function working.  I am guessing cause I am not loading the jquery libraries in right at all or I am not running the scripts in the right place.  Could you take a look at my code and see what could possible be wrong?</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta name="viewport" content="width=device-width" /&gt;
  &lt;title&gt;ShowAllEncounters&lt;/title&gt;
   &lt;link href="@Url.Content("~/Content/jquery.jqGrid/ui.jqgrid.css")" rel="Stylesheet" type="text/css"/&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>This would be the head...
  I previously had my scripts linked in there as well... But that didn't work... So I put outside of the  tag... like so...</p>
  
  <pre><code>&lt;/html&gt;
  &lt;script src="@Url.Content("~/Scripts/jquery.jqGrid.min.js")" type="text/javascript"/&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function () {
  ...});
  </code></pre>
  
  <p>Am I missing something?  How does one go about scripting jquery in an MVC4 site?</p>
  
  <p>I can't even get a freaking alert to show up!!!!!!!!!!!!!</p>
  
  <pre><code>@model IEnumerable&lt;FocusedReadMissionsRedux.Models.TemplateModel&gt;
  &lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="@Url.Content("~/Scripts/jquery.jqGrid.min.js")" type="text/javascript"/&gt;
  &lt;link href="@Url.Content("~/Content/jquery.jqGrid/ui.jqgrid.css")" rel="Stylesheet" type="text/css"/&gt;
     &lt;script type="text/javascript"&gt;
         $(document).ready(function () {
          alert("what is going on");
         });
     &lt;/script&gt;
     &lt;title&gt;ShowAllEncounters&lt;/title&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>UPDATE:  It would seem as though I am having an issue with when the jquery libraries are being loaded.  Which would definitely be a problem.  I need a solid pattern for adding these scripts to a project?</p>