我的表单验证不起作用(在 IE 或 FF 中——所以我猜它已经中断了句号)我使用的是 JQuery 1.7.2
你能看到有什么问题吗..?
代码
<script type="text/javascript" src="/js/jquery/jquery.js"></script>
<script type="text/javascript" src="/js/jquery/jquery.metadata.js"></script>
<script type="text/javascript" src="/js/jquery/jquery.validate.js"></script>
<script type="text/javascript" src="/js/validateutils.js"></script>
<form action="mailto:p.morrison@domain.com?subject=Changes to Employment" id="employmentForm" method="post" enctype="text/plain" onsubmit="location.href='thank_you_changes_to_employment.html';">
我的强制输入字段有一个类 {validate:{required:true}}
<script type="text/javascript">
<!--
$(function ()
{
$('#employmentForm').validate ();
});
-->
</script>