In questo semplicissimo tutorial imparerete come colorare in modo alternato le righe di una tabella HTML utilizzando il famoso framework jQuery. iniziamo!
Codice jQuery
// jQuery
$(function(){
$("tr.stripe:even").css("background-color", "#D0D0D0");
$("tr.stripe:odd").css("background-color", "#E5E5E5");
}
Codice HTML
// HTML
Col 1
Col 2
Col 3
Col 1
Col 2
Col 3
Col 1
Col 2
Col 3
fonte: www.sastgroup.com






