jQuery Validation - error placement

前端 未结 4 683
时光说笑
时光说笑 2020-12-07 20:59

I\'m trying to use \'errorPlacement\' from jQuery Validation DOCS:

$(\"#myform\").validate({
  errorPlacement: function(error, element) {
           


        
4条回答
  •  Happy的楠姐
    2020-12-07 21:26

    Another option is...

      errorPlacement: function (error, element) {
        element.before(error);
      }
    

提交回复
热议问题