Form Validation Toolkit

Data Type Tests



Minimum Steps to Validation:

1. Set the validation attributes of the input field
2. Attach (Initiate) the JavaScript validation process to the form (or the fields)

Email Address

data-val-checkType="email" can be specified as an attribute to check for a valid email as an input. No data formats are available for this type. URL's must start with http, https or ftp.

Example:
<input type="text" data-val-error-text="Please supply a valid email address." data-val-error-title="Email Address" 
	data-val-required="1"  id="email" name="email" data-val-checkType="email"  />
	
<script>
	$('#data-type-test-form').initValidation();
</script>