jQuery Validation plugin display success/fail images next to password

前端 未结 2 987
你的背包
你的背包 2020-12-16 08:58

I am using jQuery form validation using validation plugin. I have validate the password with minimum 7 characters and one capital and oe number.at the same time when i meet

2条回答
  •  别那么骄傲
    2020-12-16 09:09

    There is a nice example of using an image when displaying the error here

    http://jquery.bassistance.de/validate/demo/custom-methods-demo.html

    It uses this css to how an image for the error

    em.error {
      background:url("images/unchecked.gif") no-repeat 0px 0px;
      padding-left: 16px;
    }
    

    note this example has set

    errorElement: "em"
    

    so the css works, but look through the source and try it out

提交回复
热议问题