title: Chosen , I cant use search with var
body: <p>I´m using a form and a field with chosen, in the chosen search i want to put the search taken from other textarea:</p>
  
  <p>Temp is the var tha i want to use for search in chosen</p>
  
  <pre><code>var temp=document.forms.maintenance_product_texts.valueToLocate.value;
  </code></pre>
  
  <p>But this dont works, I need help</p>
  
  <pre><code>$('.chosen').chosen({ width: "500px" });
  $("#popupSelect").trigger('chosen:open');
  
  
  $('#popupSelect').val(temp).trigger('chosen:updated');
  </code></pre>