Dan Inactive
Dan Inactive

Reputation: 10060

jQuery: Validation plugin breaks when changing from jquery 1.2.6 to 1.3.2

I recently upgraded from jQuery 1.2.6 to 1.3.2

Now on the page I'm using the form validation plugin I get the exception:

[Exception... "'Syntax error, unrecognized expression: [@for='registration_primary_email']' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]

It doesn't happen with 1.2.6. Any idea what's going on?

Upvotes: 1

Views: 832

Answers (1)

Seb
Seb

Reputation: 25157

The @ selector is deprecated in jQuery 1.3.

Try removing it:

[for='registration_primary_email']

Upvotes: 7

Related Questions