Jquery验证表单<br />$.validator.setDefaults({<br /> submitHandler: function() { alert("submitted!" ; website.submit(););<br /> }<br />});<br />$(document).ready(function() {<br /> // validate the website form when it is submitted<br /> //$("#website").validate();<br /> <br /> $("#website").validate({<br /> rules: {<br /> companytheme: "required"<br /> },<br /> messages: {<br /> companytheme: "This field is required."<br /> }<br /> });<br />});<br /> Company Theme: ------解决方案-------------------- $.validator.setDefaults({submitHandler: function() { alert("submitted!" ; website.submit(););}});出掉试下