This jQuery plugin serves a very specific purpose of performing client-side Javascript validation of form elements using CSS classes to determine the rules. It was created for the Millennium Cohort Study to satisfy very specific needs:
1. to provide specific validation rules across a 30+ page survey
2. to not enforce validation; to allow the user to input and submit incorrect data if they choose to (as if they were writing in on a paper survey)
3. to not annoy the user; to allow the option to validate once and then disappear
A previous site inherited by William used a lot of Javascript spread across multiple files and sometimes embedded in the views. As a side benefit of using this plugin to validate is that validation rules are easily searchable and identifiable. For more information, including the code, please see the
GitHub link.