How to use jQuery Validation plugin with form-level server-side validation?

前端 未结 3 736
小蘑菇
小蘑菇 2021-02-04 09:58

What\'s the best way to trigger errors on elements for server-side validation errors that come back after the form passes the initial client-side validation?

$(\         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-04 10:06

    Make it. Write a plugin that will do whatever you want. Or if you get to complicated, simply write a javascript function to do it and call that.

    I would write a plugin that would create a div, fill it with the error text and animate it nicely.

提交回复
热议问题