Jquery验证表单
<script>assets/js/jquery.js"></script>
<script>assets/js/jquery.validate.js"></script>
<script><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 />
</script>