A question about jquery validate

when validating with jquery validate, using the valid () method will prompt all the form error messages. How to do form validation without displaying all failed messages when using the valid () method

                            $("-sharpftpwd_tel").keyup(function(){
                                 if($("-sharpftpwd-form").valid()){
                                     $("-sharpregister").css("background","-sharp2d9cfa");
                                 }else{
                                     $("-sharpregister").css("background","-sharpccc");
                                 }
                             });

clipboard.png

Note: I only want to display the current input box error message when using the valid () method.

Mar.22,2021
Menu