N
news.west.cox.net
I have td(s) set up like this
<td id="1">Blah</td>
<td id="2">Blah blah</td>
etc...
Then in my script I am trying to do this...
for(var k = 0; k < tdArr.length; k++) {
if (something) {
tdArr[k].class = "myH2"
}
}
But this does not set the class for the td cell...
The javascript console says the error is:
"missing name after . operator"
What am I doing wrong? Can a class be assigned to a td like this?
Thanks
<td id="1">Blah</td>
<td id="2">Blah blah</td>
etc...
Then in my script I am trying to do this...
for(var k = 0; k < tdArr.length; k++) {
if (something) {
tdArr[k].class = "myH2"
}
}
But this does not set the class for the td cell...
The javascript console says the error is:
"missing name after . operator"
What am I doing wrong? Can a class be assigned to a td like this?
Thanks