title: Modal error - Uncaught TypeError: undefined is not a function modal
body: <p>Im using the following code and I got error in delete in the <code>JS($("#deleteModal").modal("show");</code>),any idea what can be wrong here ?
  Im using MVC5 project</p>
  
  <p>the error is</p>
  
  <p>Uncaught TypeError: undefined is not a function </p>
  
  <pre><code>&lt;!-- Modal --&gt;
  &lt;div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="deleteModalLabel" aria-hidden="true"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;span class="sr-only"&gt;Close&lt;/span&gt;&lt;/button&gt;
                  &lt;h4 class="modal-title" id="deleteModalLabel"&gt;Delete Item&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div id="deleteModalBody" class="modal-body"&gt;&lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                  &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
      $(function () {
          $("#deleteModal").modal("hide");  // initially hides the modal pop-up until needed
  
          $(".deleteLink").on("click", function () {
  
              $.get('@Url.Action("GetDeletePartial")', { id: $(this).prop("id") }, function (data) {
                  $("#deleteModalBody").html(data);
  
                  $("#deleteModal").modal("show");  // shows the modal pop-up now that we have our partial view
              });
  
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>when I try it like following it fail in the begging of the script with the same error </p>
  
  <pre><code>@section scripts
  {
      &lt;script src="~/Scripts/jquery-2.1.1.min.js"&gt;&lt;/script&gt;   
  
      &lt;script&gt;
          $(function () {
              $("#deleteModal").modal("hide");  // initially hides the modal pop-up until needed
  
              $(".deleteLink").on("click", function () {
  
                  $.get('@Url.Action("GetDeletePartial")', { id: $(this).prop("id") }, function (data) {
                      $("#deleteModalBody").html(data);
  
                      $("#deleteModal").modal("show");  // shows the modal pop-up now that we have our partial view
                  });
  
              });
          });
      &lt;/script&gt;
  }
  </code></pre>