title: set select2 option using text not value
body: <p>I know if i have a select2 and i want to set one of the options, i can do run this code.</p>
  
  <pre><code> $(document).ready(function(){
       $('#btn').change(function(){
         $('#select').val(4).trigger("change")
       });    
   });
  </code></pre>
  
  <p>Lets say i want to get the text of the option </p>
  
  <pre><code>&lt;option value=4&gt;California&lt;/option&gt;
  </code></pre>
  
  <p>but if i want to set it based on the text not the value, how do i do it? </p>
  
  <p>I tried doing </p>
  
  <pre><code>$("#select").select2(data.text(), "California");
  </code></pre>
  
  <p>but it didnt work. </p>
  
  <p>How can i do this programatically in jquery or javascript. </p>
  
  <p>Any help is appreciated</p>