title: Select2 4.0.0 multi-value select boxes - initial selection
body: <p>I am attempting to have Select2 (4.0.0rc1) multi-value select box have preloaded data, but it is not working.</p>
  
  <p>HTML</p>
  
  <pre><code>  &lt;select id="sj" class="js-example-basic-multiple form-control" multiple="multiple"&gt;
      &lt;option value="1"&gt;Tickets&lt;/option&gt;
      &lt;option value="2"&gt;PArking&lt;/option&gt;
      &lt;option value="3"&gt;Special Events&lt;/option&gt;
      &lt;option value="4"&gt;Athletics&lt;/option&gt;
    &lt;/select&gt;
  </code></pre>
  
  <p>JavaScript</p>
  
  <pre><code>$(document).ready(function() {
    $("#sj").select2();
    $("#example tbody").on("click", "tr",function(){
      var defaultData = [{id:1, text:'Tickets'},{id:2,text:'Parking'},{id:3,text:'Athletics'}];
      $("#sj").select2({data:defaultData});
    });
  </code></pre>
  
  <p>I want this code to programmatically prepopulate the selected items on click.</p>
  
  <p>EDIT
  what I'm after: The drop down has a total of N Multi- selectable items , i click on a row , and it passes in 3 options as initially selected, how do i do an initSelection as 3.5.2 did? Think of it this way: I am using the multi select drop down to show attributes associated, if its a sporting event, It may only come with tickets, but a week from now i may want to add parking for this event, but it needs to remember I already had tickets associated with this event  </p>
  
  <p>I accomplished this in 3.5.2 doing the following:</p>
  
  <pre><code>initSelection : function (element, callback) {
  
          var id=$(element).val();
          if (id!=="") {
              $.ajax("index.cfm/tickets/select2get", {
                  dataType: 'json',
                  data: {
                      nd_event_id: $('#nd_event_id').val(),
                      passes: 'TK,PK,ATH',
                  },
              }).done(function(data) { callback(data); });
          }
      },   
  </code></pre>
  
  <p>But this will not work in 4.0.0 due to migration from inputs to selects</p>