Custom Validation Message


I have client validation working - dataannotations and jquery.validate.min

I have a custom ajax check, it is working normal and returns the right status. Please note that this is stand alone check which is happening on blur and on form submit when validation passes.

If the custom check fails, i would like to show the message right next the filed as client validation does. Any pointers?


Hi tahirjadoon,

By default the jQuery validation plugin should always add a label element directly after the form input field, see the below link which shows the default behavior of the error message that gets returned.