I have built a simple example to what I wish to accomplish. http://jsfiddle.net/helpinspireme/ejHFf/ What I would like to do is
- Count the number of table
<tr> - If the table has less then 6, then all get class
red - If more then 5 but less then 11, the first 5 get class
redand the remaining withblack - If more then 10, add class
redto the first 5 and then the last 5 add classblackto. The rows in between first 5 and the last 5 get no class.
Any help would be appreciated.
You want