Well i finally got the remote validation working. But if there is an error
in a form then i correct it the error message still shows. How can I remove
the message once the error is fixed? I am testing a email address in a db
with 2 emails so i know if its unique or not.
 
rules: {

   "data[Profile][email]":{required: true,email:true, remote: {url:
"/manage/profile/validate",type: "post", data: {fieldname: 'email'}}}
 },
 messages: {
  
   'data[Profile][email]': {
   required: '* This is from JS required',
   email: '* This is from JS email',
   remote: '* This is from JS remote'} }

Thanks
 
Dave

Reply via email to