Another small suggestion. I had issues using colorize when I had nested tables. Specifically with the alternating rows portion, the find functions would count nested rows in addition to the parent table.
I used nth-child to limit this to only the parent so that alternate rows are counted out correctly.
if (options.altColor!='none') {
jQuery(this).find('tr:nth-child(odd)').css('background', options.bgColor);
jQuery(this).find('tr:nth-child(even)').css('background', options.altColor);
}
Another small suggestion. I
Another small suggestion. I had issues using colorize when I had nested tables. Specifically with the alternating rows portion, the find functions would count nested rows in addition to the parent table.
I used nth-child to limit this to only the parent so that alternate rows are counted out correctly.
if (options.altColor!='none') {
jQuery(this).find('tr:nth-child(odd)').css('background', options.bgColor);
jQuery(this).find('tr:nth-child(even)').css('background', options.altColor);
}