When processing “change” event from a html select, i would like to get the last selected value/index.
For ex.
$('#mySelect').live('change', function(event){
var idx = $(this).prop('selectedIndex');
});
idx keeps the value after change event triggers. I need the value that select had before event trigger.
Try something like this if you have multiple selects: