<script src="<%=path%>/javascripts/jquery.validate.min.js?v=<%=SystemConfig.version%>"></script>
<script src="<%=path%>/javascripts/jquery-2.1.4.js?v=<%=SystemConfig.version%>"></script>
$("#divform").validate({
submitHandler : function() { //验证通过后的执行方法 ,不写的话直接提交 //当前的form通过ajax方式提交(用到jQuery.Form文件) $.post("<%=path%>/WebEx/create_dd_meeting.do",$("#divform").serialize(),function(data){if(data == "success"){ $.post("<%=path%>/WebEx/create_dd_meeting_success.do",function(data){ $("#bb").html(data); }) }else{ window.location = "<%=path%>/WebEx/create_dd_meeting_error.do"; } }); } , rules: { meeting_name: "required", meeting_password:"required", meeting_desc: "required", meeting_name: { required: true, minlength: 6, IsChinese: "" }, meeting_password: { required: true, minlength: 6, }, meeting_desc: { required: true, minlength: 6, IsChinese: "" } }, messages: { meeting_name: { required: "请输入会议名称", minlength: "长度不能小于6 个汉字" }, meeting_password: { required: "请输入密码", minlength: "密码长度不能小于 6" }, meeting_desc: { required: "请输入会议描述", minlength: "长度不能小于6 个汉字", } } }) });