I have like 100 rows, but I dont want to assign the class abc1,abc2,abc3,abc4 individually...
Is is possible to automatically assign the class to TD depending upont the column no i.e Column1 -- abc1 Column2 -- abc2 ..etc
<Table>
<tr class="odd">
<td class="abc1"> ...</td>
<td class="abc2"> ...</td>
<td class="abc3"> ...</td>
<td class="abc4"> ...</td>
</tr>
<tr class="even">
<td class="abc1"> ...</td>
<td class="abc2"> ...</td>
<td class="abc3"> ...</td>
<td class="abc4"> ...</td>
</tr>
<tr class="odd">
<td class="abc1"> ...</td>
<td class="abc2"> ...</td>
<td class="abc3"> ...</td>
<td class="abc4"> ...</td>
</tr>
</table>
Any help is appreciated.
Hmm... Thanks for all the answers Guys.. Looks like there is no way to do it through CSS. Yes, I just added it to the server html.. but I was just looking if I can avoid that.
I dont want to do it with javascript.. Thanks for answers againg Guys!!!!!!!!
Appreciate your help.
Thanks, Ben