简体   繁体   English

如何在parsley.js中同时避免多个错误?

[英]How to avoid multiple error at same time in parsley.js?

How to avoid multiple error at same time in parsley.js? 如何在parsley.js中同时避免多个错误? For example I want to validate the field with following condition email and require, min length ? 例如,我想使用以下条件电子邮件验证该字段,并要求最小长度? but want to display one error at a time? 但想一次显示一个错误?

probably this would be of some help. 可能会有所帮助。

https://github.com/guillaumepotier/Parsley.js/issues/189 https://github.com/guillaumepotier/Parsley.js/issues/189

The basic idea was to get all messages in a list. 基本思想是将所有消息都放在列表中。 Hide all and show only the one required out of it. 全部隐藏并仅显示其中所需的一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM