jQuery初练
才学习JQ不久,用的还不太熟,总结一下。下面是个简单的小例子
$("#xopvw,#xintb").change(function(){
if($("#xopvw option:selected").val() == '1' || $("#xintb option:selected").val() == '1'){
var checkCount = $("input[name='bukrs_code']:checked").length;
if(checkCount>1){
$("#bukrsTable tr:not(:first)").each(function(){
if($(this).children().eq(0).find('input[type=checkbox][name=bukrs_code]').attr("checked") == "checked"){
if($(this).children().eq(2).attr("value") == 'A' || $(this).children().eq(2).attr("value") == 'D' || $(this).children().eq(2).attr("value") == 'K'){
$.Dialog.show("所选项目中存在统驭科目类型为(A、D、K)类型,上述类型不允许修改,是否未清项、是否自动记账值");
return false;
}
}
});
}
}
});

浙公网安备 33010602011771号