表单设置验证规则
jQuery(document).ready(function(){
jQuery("#theForm").validate({
errorPlacement: function(error, element) {
element.parent().find("span[class='error']").html("");
error.appendTo(element.parent().find("span[class='error']"));
},
rules:
原创
2020-12-30 11:09:47 ·
315 阅读 ·
0 评论