Prevent focus on field when it fails validation

后端 未结 4 1731
醉梦人生
醉梦人生 2021-01-12 14:14

I often use this jQuery validation plugin to validate forms and it works great. Really pleased with it, but when you press Submit on a form it automatically puts focus on th

4条回答
  •  借酒劲吻你
    2021-01-12 14:50

    1. Go to your jQuery validate file file (http://jquery.bassistance.de/validate/jquery.validate.js)
    2. Use Control and F to find
    3. Remove .focus() on line 431.

提交回复
热议问题