Problem after update to 1.0.9

After update to 1.0.9, I face an error in a Jquery script.

Error is given as:
Uncaught Error: Syntax error, unrecognized expression: a[href*=#]:not([href=#])

I am using theme Antimatter.
I introduced this script from Mediator Theme to makes a curtain effect (arriving on page, there is a picture covering screen and on click on a arrow, this script makes the curtain opens itself on post).
It was working prefectly until update 1.0.9.

Probably the update to JQuery 2.2.0 is related to this, but I don’t know ??

I also update skeleton Mediator to check if it would have same problem but it did not make the same result: script in Mediator continued to work fine, while it’s exactly same redaction!

I really don’t know what to do!

Thank in advance for help.

Tidivoit

Here is the script: (problem is at line 21 $(‘a[href*=#]:not([href=#])’).click(function() {


Not sure about the problem specifically as i’m not jQuery expert, however you can revert to the older jQuery 2.1.4 which is still packed in Grav. Simply add this to your user/config/system.yaml:

assets:
  collections:
    jquery: system://assets/jquery/jquery-2.1.4.min.js

Thanks: I am checking that right now: thank you very much for answering.

Your suggestion made it: it’s working again!!!
Thank you very much.

A question: is it possible to call jquery-2.1.4 just for that particular page? (How?)

Other point:
how is it possible that jquery upgrade affects my particular project and not upgraded Mediator theme? ! ? (as script are exactly the sames)

OK here is the answer:

ERROR is:
a[href*=#]:not([href=#])

SOLUTION is:
a[href*="#"]:not([href="#"])
selectors have to be identified as a string that is to say nested

HERE is 2 REFERENCES:
REFERENCE1
REFERENCE2

☆ Thanks goes to @rhuster for help ♪