I am trying to get last unselected value. I have tried many ways but that can give me last selected values (by using last index) not last unselected. Is there any way to do it?
$('#f_district').chosen().change( function(evt, params) {
if(params.deselected)
{
alert($(this).val()); // it returns null how I can get last unselect value?
}
else
{
var arr=$(this).val();
alert(arr[arr.length-1]);
}
});