Alternating row color with jQuery

$(document).ready(function() { $("table.alternating_row tr:even").css("background-color", "#EBDDE2"); $("table.alternating_row tr:odd").css("background-color", "#C8BBBE"); });

Url: http://sklueh.de/2012/09/alternierende-hintergrundfarbe-in-tabellen-zeilen-mit-jquery/

Language: JavaScript | User: sklueh | Created: Sep 24, 2013