Menu
Hi.
I’m french then my problem is not easy to explain (for me).
I’ve a some td in a table that i want to change bgcolor.
then i’ve named my td as :
<td id=”td1″ align…..
<td id=”td2″ align…..
etc
then i can do :
td_1.bgColor=’f0f0f0′;
but for some reason i need to call dynamically the name of the td. i’ve tried this :
my_number = comes from a function will be 1,2, etc;
[“td” + my_number].bgColor=’ffffff’;
and this doesn’t work. i’ve put “document.” before but nothing better.
do you know the correct syntax for this ? thanks