title: Converting Select Box with Onchange to Select2
body: <p>I have a really long select box with an onchange function so that when the user selects a project, they are taken to the page for that project.</p>
  
  <pre><code>&lt;select class="project-chooser" onchange="if (this.value) window.location.href=this.value"&gt;
  &lt;option value="http://projectpageurl.com"&gt;Project Title&lt;/option&gt; 
  &lt;option value="http://projectpageurl2.com"&gt;Project Title 2&lt;/option&gt; 
  &lt;option value="http://projectpageurl3.com"&gt;Project Title 3&lt;/option&gt; 
  &lt;/select&gt;
  </code></pre>
  
  <p>Since there are so many options, I'd like to convert this to Select2 so the user can search, but don't know how to get the same effect once I apply Select2 to my dropdown. The onchange is stripped out. Does anyone know?</p>