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
updateOption
method.See the following code:
# Working example:
# Refferences:
updateOption
docs: http://formvalidation.io/api/#update-option