Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何为 jquery validate 插件创建自定义验证规则,以检查用户的输入为 10 位还是 13 位?非常感谢您的帮助。
非常简单的验证样本
$("#FormToValidatePhoto").validate({ rules: { Title: { minlength: 10, maxlength: 13 } }, messages: { Title: { minlength: "Min is 10", maxlength: "Max is 13" }} });