$(document).on('change', ".serialnotd", function () {
var count = $("[type='checkbox']:checked").length;
var qty = $(this).parent().children().find('.recqantity').val();
var isssue_qty = parseInt(qty);
var select_qty = parseInt(count);
if (select_qty > isssue_qty) {
alert("Selected no's. must be equal to Qty");
}
if (select_qty >= isssue_qty) {
$('input[type=checkbox]').not(':checked').attr("disabled", true);
} else {
$('input[type=checkbox]').not(':checked').attr("disabled", false);
}
})
如果我有(.recqantity)值= 2.需要仅允许检查2复选框不多于或少于(.recrialant)值(.serialnotd)和(.recqantity)在网格视图中需要检查每个并且在提交之前需要完成每一行(type ='submit')。 甚至尝试过每个()。仍然缺乏运气
答案 0 :(得分:1)
false