jQuery Validation plugin - Custom message -
i new jquery , using jquery validation plugin.
i ask, how override default messages display text in label associated form element.
i message this:
field password required. instead of default this field required.
field postcode must contain @ least 3 characters. instead of default please enter @ least 3 characters.
i need override default behaviour of plugin, because not want specify custom message each item every type of validation.
is possible?
$("#signupform") .validate({ rules: { password: "required", postcode: { required: true, minlength: 3 } }, messages: { password: "field password required", postcode: { required: "field postcode required", minlength: "field postcode must contain @ least 3 characters" } });
Comments
Post a Comment