遍历CheckBox根据指定条件做筛选js

$('#del').click(function(){
var checkeds=$('input[name=cid]:checked')
checkeds.each(function() {
var arole = $(this).parents('tr').children().eq(1).html();
if (arole == '10001' || arole == '10002' || arole == '10003' || arole == '10004' || arole == '10005' || arole == '10006') {
alert("无法删除该重要角色!")
}
return;
}
)

猜你喜欢

转载自www.cnblogs.com/cuiguangpeng/p/9755269.html