Validation - How to manually invalidate a field?
Hi.
Is it possible to manually tell the validator to treat a particular field as invalid (even if it's valid)?
In my app, I validate form fields with the plugin, and then send the server a request. The server might report back that one of the parameters was invalid (perhaps an email address is already in use).
Upon re-showing the form, I'd like to highlight fields the server has reported are bad...but--continuing the email example--the data in that field is valid according to the plugin, and so it won't automatically highlight it.
So, can I manually invalidate the field?
Thanks.