For this exercise, your task is to identify, download, and implement a table sorting plugin on the index.html page. When you’re done, all columns in the table on the page should be sortable.
Open the file /exercises/index.html
in your
browser. Use the file /exercises/js/stripe.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!
Copyright Rebecca Murphey, released under the Creative Commons Attribution-Share Alike 3.0 United States license.