title: jquery select2 - Select all options with inputted text string
body: <p>What i'm trying to achieve here is I have a text input, and when I type in a string for example "HELP" -  I want all the option texts that are "HELP" to be auto-selected in the list. </p>
  
  <p>Sorry I should mention im using the select2 plugin for jquery </p>
  
  <p>example--></p>
  
  <p>html:</p>
  
  <pre><code>&lt;select id="select2" name="select2" multiple class="select2" style="width: 300px;"&gt;
  &lt;option value="1"&gt;ABC&lt;/option&gt;
  &lt;option value="2"&gt;BPS&lt;/option&gt;
  &lt;option value="3"&gt;BPS&lt;/option&gt;
  &lt;option value="4"&gt;HELP&lt;/option&gt;
  &lt;option value="5"&gt;HELP&lt;/option&gt;
  &lt;option value="6"&gt;EX&lt;/option&gt;
  &lt;option value="7"&gt;HELP&lt;/option&gt;    
  &lt;/select&gt;
  
  &lt;br /&gt;&lt;br /&gt;
  
  &lt;input type="button" name="Button" id="selectspecify" value="Select String" /&gt;&amp;nbsp;
  &lt;input size="50" name="selectstring" id="selectstring" value="" placeholder="Type in an option name"&gt;
  </code></pre>
  
  <p>jquery:</p>
  
  <pre><code>$('#selectspecify').click(function() {
      var selectstring = $('#selectstring').val();
  
      $('#select2\\[\\] option:contains(' + selectstring + '))').select2('destroy').find('option').prop('selected', 'selected').end().select2() 
  
  });
  
  $(".select2").select2();
  </code></pre>
  
  <p>Can someone help me with this please? </p>
  
  <p>I've made a jsfiddle to show what i'm trying todo: <a href="http://jsfiddle.net/3ZhWu/2/" rel="nofollow">http://jsfiddle.net/3ZhWu/2/</a>
  But it obviously doesn't work yet.</p>