$(".tab_ul a").click(function() {
$(this).css("color","#f00");
$(this).siblings().css("color","#000");
var server_id=$(this).attr('ser_id');

var str="";
$('input[name="ser_ids[]"]:checked').each(function(){
str+=$(this).val()+',';
$("#tip_"+$(this).val()).remove();
});
$(".server_ids_"+server_id).val(str);

});

这时的复选框选中值会失效,所以外面不要遍历