here is the solution
rules: { shopname: { required: true, remote:"code.php", }, }
Now in the code.php file -
If the input is OK, display ANYTHING .
if the input is incorrect, you need to display the text QUOTED , for example -
echo '"This username is reserved, you must try VIVEK98779797"';
So now with this code you can display your own error message using the remote method
Vivek
source share