Posted:
Wed Feb 21, 2007 10:06 pm
by zaid
Hey guys,
I tried the above with the "unobtrusive table sort", and initially thought it worked great.
BUT, if I sort ascending/descending using one column its ok...but soon as I switch the table column I want to sort by, every single row is set the same color.
I added your snippet above so they are literally the last few lines in the function you mentioned.
Any idea where Im going wrong?
Posted:
Wed Feb 21, 2007 10:43 pm
by zaid
aha!
Just noticed that all thats wrong is a slight typo:
for(var no=0;no<tBody.rows.length;no++){
if(no%2==1)tBody.rows[no].className = 'oddRow'; else tBody.rows[no].className ='evenRow';
}