title: Cannot call method 'select2' of null
body: <p>I'm trying to use the Select2 library to display a list of categories. I have a working regular <code>&lt;select&gt;</code> at the moment.</p>
  
  <p>I added jquery, the stylesheet, the .js file and the function in my html.</p>
  
  <pre><code>&lt;link href="/select2/select2.css" rel="stylesheet"/&gt;
  &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" &gt;&lt;/script&gt;
  &lt;script src="/select2/select2.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      $(document).ready(function() { $("#listCategorie").select2(); });
  &lt;/script&gt;
  </code></pre>
  
  <p>However, the select is still displayed normally and I get the following error in console:</p>
  
  <p>Uncaught TypeError: Cannot call method 'select2' of null</p>
  
  <p>This is the select I have:</p>
  
  <pre><code>&lt;select id="listCategorie"&gt;
      &lt;option value="0"&gt;&lt;/option&gt;
      ....
  &lt;/select&gt;
  </code></pre>