hello,
I have a number of html tables created in an asp file that are enclosed by <div></div> tags. Each successive <div> tag includes an id attribute that increments by 1 for each section. (e.g. id = "report0", id = "report1", id = "report2".
What I'm doing is using these divisions to hide the table within them by calling the following javascript function:
report0.style.display = "none";
since there can be hundreds of sections, based on the records returned, I need to make this function dynamic, something like:
for (var i = 0; i < totalcount; i++) {
["report" + i].style.display = "none";
}
but this doesn't seem to work. Anyone have any ideas? thanks.
I have a number of html tables created in an asp file that are enclosed by <div></div> tags. Each successive <div> tag includes an id attribute that increments by 1 for each section. (e.g. id = "report0", id = "report1", id = "report2".
What I'm doing is using these divisions to hide the table within them by calling the following javascript function:
report0.style.display = "none";
since there can be hundreds of sections, based on the records returned, I need to make this function dynamic, something like:
for (var i = 0; i < totalcount; i++) {
["report" + i].style.display = "none";
}
but this doesn't seem to work. Anyone have any ideas? thanks.