If we want to apply condition on changing of specific indexed value of select box we simply do this:
$('#select_id').change(function(){
if(((parseInt($('option:selected',$(this)).val()))==2)||((parseInt($('option:selected',$(this)).val()))==3)||((parseInt($('option:selected',$(this)).val()))==4)||((parseInt($('option:selected',$(this)).val()))==5)){
// do something..
}
else
{
// do something else..
}
});
0 Comment(s)