A JavaScript validator for DOM elements with a jQuery wrapper