validate: custom rules with messages

validate: custom rules with messages

The example shown  http://docs.jquery.com/Plugins/Validation/rules#.22add.22rules states that you can include custom messages for particular conditions.

The set up code works in that it does store the message, however the validation processing fails as there is no "default" rule called "messages".

As a temporary workaround, it is possible to avoid this error by adding an extra rule called "messages" which always returns true.