Jquery Validate custom error message location

后端 未结 7 1746
一个人的身影
一个人的身影 2021-01-30 16:35

This looks very simply, but I can\'t figure it out. I\'m using the jquery validate plugin. I\'m trying to validate and

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 17:00

     if (e.attr("name") == "firstName" ) {
         $("#firstName__validate").text($(error).text());
         console.log($(error).html());
     }
    

    Try this get text of error object

提交回复
热议问题