Kung Fu Ninja
Kung Fu Ninja

Reputation: 3752

jquery validation rules and a weird IE7 error

I have the following validation:

 phone1: {
      required: {
       depends: "#pri_noPhone:not(:checked)"
      },
       number: true,
       minlength:3,
},

If a checkbox is checked (yes, contact me via phone) then go validate the phone1, phone2 and phone3.

In FF and Firebug, there are no errors. However, IE7 throws an error saying:

a runtime error has occurred. error: expected identifier, string or number

and it points to the rules at phone1. Not sure why?

Upvotes: 1

Views: 1487

Answers (1)

Kung Fu Ninja
Kung Fu Ninja

Reputation: 3752

i had to remove the comma after : minlength:3,

Upvotes: 1

Related Questions