jQuery Validation - Hide Error Message

后端 未结 10 1825
醉梦人生
醉梦人生 2021-02-05 03:39

I\'m using the jQuery Validation plugin and want to disable the or element/container it creates to display the error \'message\'.

Basically, I want the input element wi

10条回答
  •  萌比男神i
    2021-02-05 03:44

    I also had the same issue. I didn't want error messages, just the highlights of the form inputs that needed attention. The messages were already empty like but still created the error elements/containers after the labels..

    So to quickly stop this from happening I edited the jquery.validate.js file by commenting out the only line which states label.insertAfter(element); around line 697 +/-..

    It's just a noob's workaround ;) but it did it!

提交回复
热议问题