validate not working in ie 10

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

  1. <div id="forms">

  2. <script type="text/javascript">
  3. //validation
  4.                 $.metadata.setType("attr", "validate");
  5.                 $(document).ready(function(){ 
  6. $("#freeform").validate({
  7. rules : {
  8. email: { required : true,email:true },
  9. comments : { required : true }
  10. },
  11. messages:{
  12. email:
  13. {
  14. required: "Please enter a valid email address."
  15. }
  16. }
  17. }); 
  18.                 });
  19. // Validate Phone Number
  20. $(document).ready(function() {
  21. $.mask.definitions['~']='[+-]';
  22. $('#phone1').mask("999-999-9999");
  23.         //$("#internationalPhone1").mask("+999-999-999-9999");
  24. });
  25. </script>


  26. {exp:freeform:form
  27.    form:action="https://www.mydomain.com/index.php/"
  28.    collection="Contact Us"
  29.    return="/thank_you/contact"
  30.    notify="me@mydomain.com"
  31.    template="contact_notify"
  32.    send_user_email="yes"
  33.    user_email_template="contact_confirm"
  34. }
  35. <fieldset>
  36. <fieldset>
  37. <p><label for="name">Your Name:<span class="required">* </span></label>
  38. <input type="text" name="name" id="name" class="required" /></p>
  39.  
  40. <p><label for="phone1">Your Phone:<span class="required">* </span></label>
  41. <input type="text" name="phone1" id="phone1" class="required" /></p>  
  42.  
  43. <p><label for="email">Your Email:<span class="required">* </span></label>
  44. <input type="text" class="{validate:{required:true}}" name="email" id="email"></p>   

  45. <p><label for="comments">Your Comments:<span class="required">* </span></label>
  46. <textarea name="comments" id="comments" cols="45" rows="5" class="{validate:{required:true}}"></textarea></p>
  47. </fieldset>  
  48. <fieldset>
  49. {if captcha}
  50. <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 />
  51. {captcha}</label>
  52. <input type="text" name="captcha" value="" id="captcha" class="required" /></p>
  53. {/if}
  54. </fieldset>
  55. <p><span class="form_submit">
  56.         <input type="submit" name="submit" value="Submit" />
  57.         </span></p>
  58. </fieldset>
  59. {/exp:freeform:form}

  60. </div>