victorjonsson / jQuery-Form-Validator

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.
972 stars 476 forks source link

Showing error message depending on range #676

Open kiqueSobrino opened 6 years ago

kiqueSobrino commented 6 years ago

Is it possible to show a custom error depending on this? data-validation='required number', data-validation-allowing='range[0.01;99.99],float

We need to have two differents messages a data-validation-error-msg-number but also, something similar like this: data-validation-error-msg-allowing or data-validation-error-msg-range, but is not correct.

Is it possible? Thank you.

victorjonsson commented 6 years ago

Not supported I'm afraid. Create a custom validator or use onValidate http://www.formvalidator.net/#configuration_callbacks