Submit your widget

Simple jQuery Alternate Plugin

Created 10 years ago   Views 21226   downloads 2965    Author n/a
Simple jQuery Alternate Plugin
View DemoDownload 27.0 KB
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