User360451555 posted
Am trying to loop through a table and check if any of them has an input that is numeric, then show a div, otherwise hide it....but it shows and sometimes it doesnt.
Here is how am tryna solve it.
$("[id$='itemsTable']").find("input[type='text']").not("[id$='txtQty']").each(function () {
$(this).on("keypress keyup", function (event) {
$("[id$='itemsTable']").find("input[type='text']").not([id$='txtQty']").each(function () {
if ($.isNumeric($(this).val())) {
$("#printDiv").removeClass("hidden");
}
else {
$("#printDiv").removeClass("hidden");
$("#printDiv").addClass("hidden");
}
});
});
});