title: Change select2 option on click
body: <p>I am using the select2 plugin on my select <code>services_dd</code> in my form, I have a link on the page with a class <code>.js-autoselect</code>. On clicking this I want to take the ID of that link tag and change the select2 option depending on the button they clicked.</p>
  
  <p>The <code>&lt;option&gt;</code> value attribute matches the attribute of the id on the link. The code below is successfully changing the value but the select2 is not updating, it still shows the first selection. </p>
  
  <pre><code>$('.js-autoselect').click(function(e){
      e.preventDefault();
      var option = $(e.target).attr('id').trim().toLowerCase(); // option =link1
  
      $('#services_dd option:selected').val(option);
      alert($('#services_dd option:selected').val()); // this alerts link1 which is correct
  
  });
  </code></pre>
  
  <p>Does anyone know how to update the select2</p>