JQuery masing -masing memiliki kelas
$('li').each(function (){
if($(this).hasClass("active")){
$(this).css("color", "red");
}
else{
$(this).css("color", "blue");
}
});
Light Louse