在volist中用遍历


$('.InColor').each(function(){
if($(this).val()==1){
$('.absolute').css({"color":"gray"});
}else if($(this).val()==2){
$('.absolute').css({"color":"#ff8800"});
}else if($(this).val()==3){
$('.absolute').css({"color":"green"});
}else if($(this).val()==4){
$('.absolute').css({"color":"red"});
}
})

原文地址:https://www.cnblogs.com/yongwang/p/6958623.html