I have problem with determining if checkbox is checked in parent tr. If checkbox is cheked this tr shoud be skiped. It seemed like everything is correct in my code,but it's not working.
$(document).ready(function () {
var sum = 0;
$('#MainContent_gvOrders > tbody > tr > td .col1').each(function () {
if ($(this).closest('tr').has('input:not(:checked)')) {
sum += parseInt($(this).text());
}
});
$('#tp').html(sum);
});
function pageLoad(sender, args) {
var sum = 0;
$('#MainContent_gvOrders > tbody > tr > td .col1').each(function () {
if ($(this).closest('tr').has('input:not(:checked)')) {
sum += parseInt($(this).text());
}
});
$('#tp').html(sum);
}