views:

206

answers:

1

Hi,

I'm trying to implement a generic way of adding remote validation to xVal / jquery.validate

There are only two unsolved questions left:

  • How do I "manually" mark a form element as invalid and add an error message to it from my own javascript code?

  • How do I remove remove the error message at a later time without removing any other error messages?

Is there any neat way to do this or do I have to hack a solution that takes into account how jquery.validate works internally?

A: 

I've found a much better way to solve this and wrote a blog article on how to implement remote client-side validation in a generic way in case someone else is also interested in remote client-side validation.

Adrian Grigore