title: Get Last Selected Value of Select2?
body: <p>I am using multiple options for Select2 and the data is loaded from a JSON source.</p>
  
  <p>As I'm not sure how to explain it exactly I'll provide an example:</p>
  
  <h2>List Options:</h2>
  
  <ul>
  <li>A</li>
  <li>B</li>
  <li>C</li>
  </ul>
  
  <p>If I choose C, then</p>
  
  <pre><code>$("#select2").change(function(){
          alert($(this).val());
      });
  </code></pre>
  
  <p>Results: [C]</p>
  
  <p>However, If I then choose A I would get [A, C]</p>
  
  <p>If I then choose B I get [A, B, C]</p>
  
  <p>I would preferably want it to append so I would get [C, A, B]. However being able to find the last selected option would be alright. I have tried :last and other answers but nothing seems to work.</p>
  
  <p>Thanks in advance.</p>
  
  <p>My script for Select2:</p>
  
  <pre><code>$.getJSON('profile/Skills.json', function (json) {
          var mainList = [];
          for (var TradeName in json) {
              if (json.hasOwnProperty(TradeName)) {
                  var item = json[TradeName];
                  mainList.push(item.TradeName);            
              }
          }       
          $(".chyeaSelect").select2({
              data:mainList
          });
      }); 
  </code></pre>