Skip to Navigation or
Skip to Content

Jquery Easy Validation

Jquery Easy ValidationQuick Links

Visit the jQuery Easy Validation project hub, which has a demonstration and download for this plugin on JS Plugins JavaScript Plugin Library.

Easy Validation Demonstration.

Description

The jQuery Easy Validation project is a plugin for the jQuery JavaScript Framework, which adds really quick mandatory field validation to your forms. It provides field-highlighting for required fields and fields in an error state as well as a configurable message prompting users to complete the fields.

Requirements

CSS

/* Recommended styles */
		.musthave {
			background-color: #CCFFFF;
		}
		
		.validationerror {
			background-color: #FFBBBB;
		}

JavaScript

$(".mandatory").easyvalidation();

With all options set:

$(".mandatory").easyvalidation({
    "classmodifier": "ev",
    "initialclass": "musthave",
    "errorclass": "validationerror",
    "message": "Please complete all required fields"
);

 

You Are Here: Home » JavaScript » Easy Validation


I use a cookie on this website. This cookie doesn't contain or relate to any personal information and it isn't shared with any other website, it just ensures that I don't count you more than once in my website statistics. The Privacy and Electronic Communications Regulations require me to ask your permission to use this cookie, so please indicate below that you are happy for me to do this - I will remember your selection with a cookie, so if you accept I won't ask again...