Let's say I have this validation in one field:
between: {
min: 50,
max: 500,
message: 'Please enter correct range'
}
I would like to update min and max at runtime.
How can I do that ?
Thanks.
Let's say I have this validation in one field:
between: {
min: 50,
max: 500,
message: 'Please enter correct range'
}
I would like to update min and max at runtime.
How can I do that ?
Thanks.
You can do that using the
updateOptionmethod.See the following code:
# Working example:
# Refferences:
updateOptiondocs: http://formvalidation.io/api/#update-option