[Solved] How to check the option value in drop down with previous value? [closed]


    $(document).ready(function(){ 
$('body').delegate('#DropDown_Year','change',function(){
var prev = $(this).find('option:selected').prev().val();

  if($(this).val() ==  prev ){ 
    alert('Matched');
     //your curent value and previous value are the same
  }else{
    //not same
  }


 });
});

3

solved How to check the option value in drop down with previous value? [closed]