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

[ad_1]

    $(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

[ad_2]

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