[UPHPU] javascript syntax

Aaron Throckmorton aaron at throckmortons.com
Mon May 2 11:20:04 MDT 2011


On Mon, May 2, 2011 at 10:51 AM, Aaron Luman <aaron.luman at gmail.com> wrote:

> you could do:
>
> for(var j=0; j<10; j++) {
>         var the_row = 'tr_' + j; // create the id field value
>     var rowDisplay = eval("document.getElementById(the_row).style.display";
>     alert ("display is " + rowDisplay);
> }
>
> It should work without the eval there too:

var rowDisplay = document.getElementById(the_row).style.display;

Aaron


More information about the UPHPU mailing list