Please check if this helps to you
var isValid ="0";
$("[id$='tbl'] :checked").each(function () {
isValid = ...