Displaying the error message from web service in jquery validation custom method

Posted by Mrt on Stack Overflow See other posts from Stack Overflow or by Mrt
Published on 2010-05-31T05:50:32Z Indexed on 2010/05/31 5:52 UTC
Read the original article Hit count: 249

Filed under:
|

Hello,

I'm adding a custom method to jquery validation that calls a webservice, but the web service returns more then just a boolean. Is it possible to show the error based on return call of the web service. e.g. say I want an email address to be valid & not in use, so my web service checks this an returns 0 - ok, 1 - not valid, 2 - in use. How can I get jquery to show to correct error message based in the response ?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-validate