phpers:

struggling with this....


This works:

var rowDisplay = document.getElementById('tr_1').style.display;


How do I put the tr_ into a for loop?

i.e.

for(var j=0; j<10; j++) {
       var rowDisplay = eval("document.getElementById('tr_'" + j +
").style.display";
       alert ("display is " + rowDisplay);
 }


or
var rowDisplay = document.getElementById['tr_' + j].style.display;

?

I'd prefer not to use the eval if I don't have to.

Thanks

Merrill

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to