Uncaught exception: syntax error after jQuery update

I am trying to upgrade an existing application from jQuery 1.3.2 to jQuery 1.4.2. When I do this, the page cannot load correctly, and the firefox error console displays the error message "uncaught exception: syntax error, unrecognized expression: syntax error, unrecognized expression: search".

How can I determine what causes this exception?

+3
source share
1 answer

Install Firebug to break all script errors by clicking the icon in the upper left corner of the Console tab.
The next time an error occurs, you will be taken to the corresponding line. (First you need to go up the call stack)

Alternatively, do a script search for the word searchinside the selector.

+1
source

Source: https://habr.com/ru/post/1744557/


All Articles