Parsley.js无法验证

时间:2013-09-27 16:10:54

标签: javascript jquery html validation parsley.js

<!-- Load jQuery from Google CDN !-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<!-- Load jQuery Validation Code !-->
<script type="text/javascript" src="js/parsley-standalone.min.js"></script>

        <form data-validate="parsley" data-show-errors="true" method="post" action="php/mail.php">

            <input type="text" class="contact_field" placeholder="Your Name" name="name" data-required="true">

            <input type="text" class="contact_field" placeholder="Your E-Mail Address" name="email" data-required="true">

            <textarea class="contact_field" placeholder="Question or Comment" rows="8" name="message" data-required="true"></textarea>

            <input type="submit" class="contact_button" value="Send!">

            <input type="reset" class="contact_button" value="Reset">

        </form>

每次我尝试提交表单时,都不会进行验证。空白表单可以轻松传递并发送电子邮件。知道我对这个脚本做错了吗?

0 个答案:

没有答案