Helping ordinary people create extraordinary websites!

Striped Tables Using JavaScript

By Paul McCarthy
2008-01-23

Benefits of JavaScript striped tables

JavaScript can be used to simplify repetitive tasks. Rather than applying a class to every other row a single class is applied to the table itself.

This technique is extremely useful in content managed environments. Content editors may not have the time or expertise to reliably apply classes deep within the HTML. Applying the single class to a high level HTML element and using JavaScript to present its children can help keep a site visually consistent and improve its maintainability.





Tutorial pages:
 2 Votes

You might also want to check these out:


Leave a Comment on "Striped Tables Using JavaScript"
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS