jquery Programming Glossary: altsub
Alternate row coloring in jquery http://stackoverflow.com/questions/979669/alternate-row-coloring-in-jquery of .each loop it throws error. teble demo var alt true var altSub true .each myData function index row var noRow row .length var.. true firstRow.removeClass odd .addClass even alt alt altSub true else if alt false firstRow.removeClass even .addClass.. false firstRow.removeClass even .addClass odd alt alt altSub true else if altSub true row i .removeClass alt_row_sub .addClass..
Alternate row coloring in jquery http://stackoverflow.com/questions/979669/alternate-row-coloring-in-jquery group of rows into dom improves performance but if i do out of .each loop it throws error. teble demo var alt true var altSub true .each myData function index row var noRow row .length var firstRow row 0 for var i 0 i noRow i if firstRow.attr 'id'.. i 0 i noRow i if firstRow.attr 'id' row i .attr 'id' if alt true firstRow.removeClass odd .addClass even alt alt altSub true else if alt false firstRow.removeClass even .addClass odd alt alt altSub true else if altSub true row i .removeClass.. odd .addClass even alt alt altSub true else if alt false firstRow.removeClass even .addClass odd alt alt altSub true else if altSub true row i .removeClass alt_row_sub .addClass alt_row_sub2 altSub altSub else if altSub false row..
|