Here is an example. You just need to get it valuefrom selectthe download page first , then every time there is a change, just update this variable with a new value.
In any change event, the variable currValuecontains the previous value before the change.
var currValue = $('select').val();
$('select').on('change',function(){
var newValue = $(this).val();
alert('value Before change : '+ currValue);
alert('value After change : '+ newValue);
currValue = newValue;
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<select>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<select>
Run codeHide result source
share