basically i want to calculate all child div height excluding one
here is my code
var allChildDivHeight = 0;
this.children().each(function (e) {
//alert($(this).attr('id'));
if ($(this).attr('id') != 'BlindBox') {
allChildDivHeight = allChildDivHeight + $(this).outerHeight();
}
});
i want to calculate all child div height excluding one child div name “BlindBox”. my code is not working. what is the prob
Depending on the context in which this is executed if this is not a jQuery object you need to select it. Also limit the children to only div-s: