errorClass in jquery validate plugin?

前端 未结 6 1037
悲哀的现实
悲哀的现实 2020-12-14 07:58

I am using jquery validate plugin in my web application to validate forms for blank and other simple validations.

I am using below code to setup jquery validate plug

6条回答
  •  天涯浪人
    2020-12-14 08:35

    In the jQuery validation plugin, the errorClass is both applied to the error message element (usually a , but a in your case) and to the validated element itself. Since you only want to style the error message element, you should write:

    span.authError {
        // Your error element style.
    }
    

提交回复
热议问题