title: Select2 - Object does not support the method
body: <p>I've downloaded JQuery select2 library, in order to use its Multiselect (looks like tags).
  I have an MVC application, framework 4.5, and I'm also using bootstrap.
  I've tried all kind of solutions, but out of some reason, my application falls on</p>
  
  <blockquote>
    <p>0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'select2'</p>
  </blockquote>
  
  <p>Here's what I'v tried: <br>
  1)</p>
  
  <pre><code>$(document).ready(function () {
          var test = $('#test');
          $(test).select2({
              data: [
                  { id: 0, text: "enhancement" },
                  { id: 1, text: "bug" },
                  { id: 2, text: "duplicate" },
                  { id: 3, text: "invalid" },
                  { id: 4, text: "wontfix" }
              ],
              multiple: true,
              width: "300px"
          });
      });
  
  &lt;input type="text" id="test" /&gt;
  </code></pre>
  
  <p>That's according to: <a href="http://jsfiddle.net/2rWcG/1/" rel="nofollow">JSFIDDLE</a></p>
  
  <p>2) <code>$(document).ready(function () { $("#test").select2(); });</code></p>
  
  <pre><code>                                    &lt;select id="test" class="form-control"&gt;
                                          &lt;option value="AL"&gt;Alabama&lt;/option&gt;
                                          &lt;option value="WY"&gt;Wyoming&lt;/option&gt;
                                          &lt;option value="XX"&gt;blabla&lt;/option&gt;
                                      &lt;/select&gt;
  </code></pre>
  
  <p>That's according to: <a href="http://ivaynberg.github.io/select2/" rel="nofollow">JQuery page</a> (Under Multi-Value Select Boxes, the one under Multiple select types)</p>
  
  <p>I've tried some more which I can't remember, since I've been working on it for a day or so...</p>
  
  <p>My References are to</p>
  
  <pre><code>select2.css
  select2-bootstrap.css
  bootstrap.css
  jquery-1.10.2.js
  select2.js
  bootstrap.js
  </code></pre>
  
  <p>(In that order)
  The JQuery Select2 version is 3.5.1
  I also tried using jquery-2.1.1.js instead of jquery-1.10.2.js, but it didn't work (same error).</p>
  
  <p>Any ideas what am I doing wrong?</p>
  
  <p>Thanks</p>