How to get the last selected option from a multiselect?

jquery, multi-select

Solution

Something like this

var lastSelected = null;
$('.multiSelectOptions').click(function(){
    lastSelected = this.value;
});

Problem

I'm looking for a way to get the last user-selected option in a multiselect form using jQuery. I'm not looking for the last item on the list, but for the last item the user clicked.

Original source

Related problems