LeValidate gives you ability to validate forms by rules that are very easy to set along with css3 dynamic notification box which you can modify as you like. Plugin is mainly designed to be light and easy to edit for everyone.
Package includes necassary files and examples.
Installation
- Extract archive to WordPress plugins folder like ‘wordpress\wp-content\plugins\LeValidate’
- Activate plugin in WordPress Administration Backend
- Set up plugin in ‘Settings > LeValidate Settings’ the way you need
- Finally choose inputs and set their ‘class’ attribute to couple of validation methods (look below)
eg.: <input type=”text” class=”require email” name=”email” />
Notes
- Plugin self-apply to forms with class ”.le-validate” using default options if not overriden by user.
- jQuery 1.7+ recommended due to icon animation rendering trouble in older versions.
List of available validation methods
require () Required field email () Validate email url () Validate url number () Validate only numbers text () Validate only non-number string maxLength (length) Max length of characters minLength (length) Min length of characters min (value) Min value max (value) Max value passwordAgain () Compare equality to 'password' input class