I have a table with expand and collapse of rows, with column sortable. Below is my code, is there is any ways to improve its performance. And read appending complete group
you are inside each loop, do this :
$.each(myData, function(index, row) { if(index % 2 == 0) { row.addClass("AltRow"); } )};