Apr3
Table row class calling via a small JS file.
- posted by: Bruce
- no comments
- post a comment
A constant problem that we run into here at Imulus is clients that want tables with alternating color rows but don’t understand the concept of editing HTML to add a class of odd or even to them.
So today Ryan took a few minutes and created a tiny javascript that automatically applies an “even” class to every row of a table. Now we can apply our styles via the CSS and the clients don’t have to worry if they generate their own tables via Central 2 (the Imulus CMS). The script relies on Jquery (http://www.jquery.com) and is incredibly easy to set up.
Download the script: Table-Row-Switch.zip










Leave a comment