How to display jQuery Validation error container only on submit

后端 未结 6 834
南笙
南笙 2021-02-07 10:14

I am trying to make the Validation plugin work. It works fine for individual fields, but when I try to include the demo code for the error container that contains all of the err

6条回答
  •  后悔当初
    2021-02-07 10:53

    I solved this problem with the following short code:

    errorElement: "td",
    errorPlacement: function (error, element) {
         error.insertAfter(element.parent());
    } 
    

    My structure is the following:

    Name:

    So my errors will now shown directly in a behind my

提交回复
热议问题