validate not working in ie 10
I feel like an idiot asking this but I haven't been able to find a similar problem yet I know someone must have run into this. So I know that I'm not searching for the right terms.
OK, here's my dilemma. The code below works fine on IE 7 and IE 8, yet it does not work on IE 10.
And of course, it works fine on Firefox and Chrome.
I migrated from jquery.validate v.1.11.0 to v.1.11.1 but no luck.
Also, I'm using jquery v.1.7.2
Thanks,
Peter T
- <div id="forms">
- <script type="text/javascript">
- //validation
- $.metadata.setType("attr", "validate");
- $(document).ready(function(){
- $("#freeform").validate({
- rules : {
- email: { required : true,email:true },
- comments : { required : true }
- },
- messages:{
- email:
- {
- required: "Please enter a valid email address."
- }
- }
- });
- });
- // Validate Phone Number
- $(document).ready(function() {
- $.mask.definitions['~']='[+-]';
- $('#phone1').mask("999-999-9999");
- //$("#internationalPhone1").mask("+999-999-999-9999");
- });
- </script>
- {exp:freeform:form
- form:action="https://www.mydomain.com/index.php/"
- collection="Contact Us"
- return="/thank_you/contact"
- notify="me@mydomain.com"
- template="contact_notify"
- send_user_email="yes"
- user_email_template="contact_confirm"
- }
- <fieldset>
- <fieldset>
- <p><label for="name">Your Name:<span class="required">* </span></label>
- <input type="text" name="name" id="name" class="required" /></p>
-
- <p><label for="phone1">Your Phone:<span class="required">* </span></label>
- <input type="text" name="phone1" id="phone1" class="required" /></p>
-
- <p><label for="email">Your Email:<span class="required">* </span></label>
- <input type="text" class="{validate:{required:true}}" name="email" id="email"></p>
- <p><label for="comments">Your Comments:<span class="required">* </span></label>
- <textarea name="comments" id="comments" cols="45" rows="5" class="{validate:{required:true}}"></textarea></p>
- </fieldset>
- <fieldset>
- {if captcha}
- <p><label for="captcha">Please answer the question below. This is to ensure that this form is submitted by a person rather than a robot.<span class="required">* </span><br />
- {captcha}</label>
- <input type="text" name="captcha" value="" id="captcha" class="required" /></p>
- {/if}
- </fieldset>
-
- <p><span class="form_submit">
- <input type="submit" name="submit" value="Submit" />
- </span></p>
- </fieldset>
- {/exp:freeform:form}
- </div>