jQuery validation - only show one error message

房东的猫 提交于 2021-01-27 16:28:38

问题


Is there a way to only show the latest error-message thrown, when using the validation-plugin for jQuery?


回答1:


I think you should look into the groups and errorPlacement options to the validate method. That should work out for you.

jQuery Validation validate( [options] )



来源:https://stackoverflow.com/questions/1816702/jquery-validation-only-show-one-error-message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!