|
|
Question : Alternate Table Row Colors on Multiple Tables
|
|
I have a script that will alternate the colors of table rows, but if I add more than one table, it doesn't work. How do I do this without having to write the same javascript function x number of times that I have tables?
Untitled
This is the table header |
---|
Row1 | Row2 | Row3 | Row4 | Row5 | Row6 |
|
Answer : Alternate Table Row Colors on Multiple Tables
|
|
Given that each table has a distinct ID , are you saying this won't work?
function configurePage() { stripeTableRows(document.getElementById("mainContentTable"),1); stripeTableRows(document.getElementById("secondContentTable"),1); stripeTableRows(document.getElementById("thirdContentTable"),1); }
|
|
|
|
|