0

I have been trying to update my website from jQuery 1.4.3 to 1.11.1 the last days and of course ran into several issues. Most of them I have fixed but I don't understand the latest error I get.

Before when I wanted to show a popup dialog I used this function

a.poplight[href=#?w=270]

But now it says

Uncaught Error: Syntax error, unrecognized expression: a.poplight[href=#?w=270]

Anyone else have had this issue when upgrading jQuery and what might be the issue?

Joakim M
  • 1,793
  • 2
  • 14
  • 29
  • Most likely poplight is using deprecated jQuery methods, try upgrading to jQuery v1.8.3 before – JFK May 12 '14 at 06:45
  • Should I upgrade to 1.8.3 first and the to 1.11.1? How would that help? – Joakim M May 12 '14 at 06:46
  • Update before to verify about deprecated elements – JFK May 12 '14 at 06:47
  • This is an example of a plugin having issues with deprecated methods after jQuery v1.9+ http://stackoverflow.com/q/14344289/1055987 – JFK May 12 '14 at 06:49

1 Answers1

2

your are using double '=' sign in expression, it must be quoted as string
try this

a.poplight[href*='#?w=270']
siraj pathan
  • 1,455
  • 1
  • 14
  • 31