/Happy.js

$('form').isHappy() – Lightweight, extensible form validation plugin for jQuery/Zepto.js

Primary LanguageJavaScriptMIT LicenseMIT

#Happy.js – are your forms happy? Just ask 'em!


Additional Options

'invalid_class' (string) 'default: unhappy' Invalid HTML element class

'errorPlacement' (function)
Error placement function. If undefined, uses the original error placement (positioning the error element before the element). Can be assigned individually for each field or a global errorPlacement, individual errorPlacement functions take precedence

'removeError' (function)
Error removal function. If undefined, uses the original error removal method (delete the error element). Can be assigned individually for each field or a global removeError, individual removeError functions take precedence

happyjs.com