Write a Table-Striping Plugin
Prev Chapter 9. Exercises 

Write a Table-Striping Plugin

Open the file /exercises/index.html in your browser. Use the file /exercises/js/tablePlugin.js. Your task is to write a plugin called "stripe" that you can call on any table element. When the plugin is called on a table element, it should change the color of odd rows in the table body to a user-specified color.

$('#myTable').stripe('#cccccc');

Don't forget to return the table so other methods can be chained after the plugin!


Prev Up 
Make a Table Sortable Home