Submit your widget

Simple jQuery Alternate Plugin

Created 7 years ago   Views 16937   downloads 2177    Author n/a
Simple jQuery Alternate Plugin
View DemoDownload 27.0 KB
205
Share |

I recently required a light-weight unobtrusive javascript to set alternating styles on <table> rows and other elements (such as <li>s or <div>s). There are some options available, but most apply only to tables and are a little bloated for my needs. Since jQuery is my javascript library of choice, I created jQuery.Alternate. It's my first jQuery plugin so it's a little rough.

Tag: alternate