2

Magento 2.1.2 bundled with jQuery 1.11. How it possible to replace it with jQuery 2.1?

  • 1
    Why u want to replace? By replacing JS it will cause so many issues. – Ankit Shah Dec 14 '16 at 2:29
  • When I will add FB.init that time need to add function with ajax post, so I need to add other jquery. and comes issue so let me figure out this. – sarvesh Dineshkumar Patel Jul 11 at 7:53
0

Original file path is here

magento\vendor\magento\magento2-base\lib\web\jquery.js

You should overwrite in your theme so path will be

magento\app\design\frontend\Custom\YourTheme\web\js\jquery.js

How to override JS file

Extending/overriding JS in Magento 2

  • 1
    This doesn't work for version 2.2.4 – Frank Groot Jun 18 '18 at 7:29
  • hi @Ankit, can you update the full code, with require js? – jafar pinjar Oct 30 at 11:05
0

Change the jquey file in lib folder.

lib/web/jquery.js

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.