title: Bootstrap : TypeError: $(...).modal is not a function
body: <p>i've been trying to call bootstrap modal from jquery and keep getting this error message :</p>
  
  <pre><code>TypeError: $(...).modal is not a function
  </code></pre>
  
  <p>Here is my code :</p>
  
  <pre><code>&lt;button id="btnTest" class="btn btn-default"&gt;Show Modal&lt;/button&gt;
  &lt;div id="dummyModal" role="dialog" class="modal fade"&gt;
      &lt;div class="modal-dialog"&gt;
        &lt;div class="modal-content"&gt;
          &lt;div class="modal-header"&gt;
            &lt;button type="button" data-dismiss="modal" class="close"&gt;&amp;times;&lt;/button&gt;
            &lt;h4 class="modal-title"&gt;Error&lt;/h4&gt;
          &lt;/div&gt;
          &lt;div class="modal-body"&gt;
            &lt;p&gt;Quick Brown Fox Jumps Over The Lazy Dog&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="modal-footer"&gt;
            &lt;button type="button" data-dismiss="modal" class="btn btn-default"&gt;Close&lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;script type="text/javascript" src="/js/jquery-1.11.3.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/js/bootstrap.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    $('document').ready(function () {
      $('#btnTest').click(function () {
          $('#dummyModal').modal('show');
      });
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>FYI, i use bootstrap 3.3.5 and jquery 1.11.3. i've tried <code>jQuery.noConflict(); ... etc</code> from <a href="https://stackoverflow.com/questions/8586306/bootstrap-modal-is-not-a-function">this thread</a> but still no luck. Here's the <a href="http://pastebin.com/tgKaK3Gx" rel="noreferrer">complete code</a></p>