Submit your widget

Simple jQuery Alternate Plugin

Created 13 years ago   Views 10372   downloads 2008    Author n/a
Simple jQuery Alternate Plugin
View DemoDownload
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