-
Notifications
You must be signed in to change notification settings - Fork 0
Simple Jquery validation plugin
-example $.fn.formValidate.addMessages({name:"Please enter valid name"});
Please note that above API should be invoked before the form validate plug-in.
$("#signup-form").formValidate(
{attributeUsed:'data-formvalidate', // Custom html input attribute for giving form validation rules
triggerUsed:"change keyup", // Trigger used for validating individual fields
scroll:true, // After form submission window will scroll to the first error message
hideErrorOnChange:true, // Error messages shall be displayed when user changes the value
skipHiddenFields:true //Excludes in hidden fields
});
##Below property shall enable Asynchronous rules.
data-assync-pattern="true"
data-server-url="server.php"
Example
-Input ID should be give an key for the message
##Example
$.fn.formValidate.addMessages({password:"Please enter valid name"});