Table Stripes (ZEBRA colored) in table via jQuery

$(document).ready(function(){ $("table tr:even").addClass('stripe'); });
When displaying data on a table, alternating colors on each row definitely increases readability.

Here’s a snippet to automatically add a CSS class to one row of out two.

#table #zebra #tr #td #even
#cesarnog

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.