Everything seems fine until the alert pops up, but the 'if' statement is not executing properly. Here is the program stack. Is there a way to check the display property of a div to see if it's set to "block" or "none"?
for(i=1;i<=10;i++)
{
alert("Hamdun Soft Past Job Will be Deleted");
if(document.getElementById(i).style.display=="block")
document.getElementById(i).innerHTML="Hamdun Soft Is Clear Now";
}
Oh! Remember that out of the divs with IDs ranging from 1 to 10, one has its display set to "block" while the rest are set to "none". I set this using another JavaScript program. But now, I need to identify which one is set to "block". Thanks.