title: Preselecting value in select2
body: <p>Texbox is dynamically filled with a remote call using Select2 and how do I set preselected value. Here is the code</p>
  
  <pre><code>&lt;input type="hidden" id="e6"&gt;
  
  $("#e6").select2({
      placeholder: "Search for a movie",
      minimumInputLength: 1,
      ajax: {
          url: url,
          dataType: 'jsonp',
          data: function (term, page) {
              return {
                  q: term, // search term 
                  page_limit: 10, }; 
          }, 
          results: function (data, page) { 
                  return {results: data};
          }
      }
  });    
  </code></pre>
  
  <p>I tried this to preselect value 1049</p>
  
  <p><code>$('#e6').select2('val', '1049');</code></p>
  
  <p>but this doesn't set the value on the textbox. </p>
  
  <p>Any ideas?</p>