0

I have a JQuery to show a remote validation message but I only want it to execute for the remote validation and not the required validation.

So far I have

$('#MyElement').keyup(function () {    
         if (!!myEmailTimeoutChecker) {    
            clearTimeout(myEmailTimeoutChecker);    
         }    
         myEmailTimeoutChecker = setTimeout(verifyMyElement, 2000)    
 });

So it validates if 2 seconds have gone by and in the verifyMyElement method, I call $('#MyElement').valid(); Maybe I just need to do something a little bit different, not really sure but again, I only want to see the remote validation message and not the required validation message. The required validation message should only show on form submit.

Sharjeel Aziz
  • 8,495
  • 5
  • 38
  • 37
Pittfall
  • 2,751
  • 6
  • 32
  • 61

1 Answers1

0

The valid() method will validate all the validation rules that were put in place. If you want one that is separate, a custom one should be made, not using the built in one.

Pittfall
  • 2,751
  • 6
  • 32
  • 61