Javascript jQuery.validationEngine v2.6.1是否未验证?
我说不出我在这里做错了什么 这部分似乎正在工作,或者至少启动了,因为使用调试器设置的断点在代码中中断Javascript jQuery.validationEngine v2.6.1是否未验证?,javascript,jquery,forms,validation,jquery-validation-engine,Javascript,Jquery,Forms,Validation,Jquery Validation Engine,我说不出我在这里做错了什么 这部分似乎正在工作,或者至少启动了,因为使用调试器设置的断点在代码中中断 <script> jQuery("#contactForm").validationEngine(); </script> jQuery(“#contactForm”).validationEngine(); 但它似乎没有连接到表单字段,并且在这样使用时不会尝试验证或不正确地验证: <form class = "contactform" id = "c
<script>
jQuery("#contactForm").validationEngine();
</script>
jQuery(“#contactForm”).validationEngine();
但它似乎没有连接到表单字段,并且在这样使用时不会尝试验证或不正确地验证:
<form class = "contactform" id = "contactForm">
<fieldset>
<div class="contactform-email contactform-field">
<label class="contactform-label" for="contactform-email">Email Address:
<br>
</label>
<input class="validate[required,custom[email]] contactform-input" type="email" id="contactform-email" name="email" />
</div>
<input class="contactform-button" type="submit" name="submit" value="Send"/>
</fieldset>
</form>
电邮地址:
有什么我配置错误的吗
鲍勃:好的,我终于解决了 问题是这段代码是在Meteor JavaScript框架内运行的,它需要的代码如下
jQuery("#contactForm").validationEngine();
在Template.myTemplate.rendered函数中,在正确的时间正确执行
仍在学习…@Recode我试过了,但我得到一个错误,说我不能接受自己的答案,直到两天过去。