errorClass in jquery validate plugin?

前端 未结 6 1040
悲哀的现实
悲哀的现实 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:33

    You should actually be just defining different classes for input and span (span since errorElement is set to span, otherwise it will be label), rather than removing the applied class

    e.g.

    span.authError {color:red;}

    input.authError {border:1px dotted red;}

    and not just .authError{} which will get applied to both input and span

提交回复
热议问题