I have a div, which contains n number of child nodes. I have a for loop:
for (iloop = 0; iloop < summaryDiv.childNodes.length; iloop++) {
if (summaryDiv.childNodes[iloop].innerHTML.contains('display:block')) {
flag = false;
}
}
Here some of the child nodes don't contain the element innerHTML. I need to check if the child node contains innerHTML element, then I need to check for the style (display:block). How can I do this?