title: How to get values of a multiselect Listbox in order they were clicked?
body: <p>I have a multiselect Listbox and fetching the list of selected values using</p>
  
  <pre><code>$('[id*=ListBox]').click(function(){
  
      var selectedItems = $(this).val();
      var lastItem = $("[id*=ListBox] option:selected").last().val();
  
  });
  </code></pre>
  
  <p>This returns me comma separated array of selected values. But the problem is the array is always <strong>sorted</strong> by values and not generated by order in which selected values were clicked.</p>
  
  <p><strong>3000 , 3005 , 3009 , 3011</strong></p>
  
  <p>But if I first click item with value 3011, then 3005 , then 3000 and last 3009 I want values in that order</p>
  
  <p><strong>3011 , 3005 ,3000 , 3009</strong></p>
  
  <p>How to get selected values in order in which they were clicked ?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Getting the most recent value selected also solves my problem.</p>
  
  <p>How to get most recent selected item ?</p>