Submit your widget

Simple jQuery Alternate Plugin

Created 14 years ago   Views 10729   downloads 2129    Author n/a
Simple jQuery Alternate Plugin
View DemoDownload
134
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