This is an excerpt from Manning's book Extending jQuery. Login to get full access to this book.
Listing 14.8. Defining a multiple-field rule