Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Simple jQuery table striping
* jQuery Table Striping - v0.1 - 05/12/2011
* Dual licensed under 'Use it like you stole it'
* and 'We Don't Care'
* Description: Stripe table rows easily by calling 'stripeRows'
* on any collection of <tr> elements and passing in the desired
* colors.
* Example usage:
* $('tr').stripeRows('#eee', '#ccc');
$.fn.stripeRows = function(e,o) {
return this
.css('background-color', e)
.css('background-color', o);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.