3

I'm trying to use the jQuery Chosen library with the image-select plugin in Drupal, but I can't get the element to render correctly. The example page uses jQuery 3 and Drupal 8 doesn't.

Will Drupal 8 support jQuery 3?

3
  • 1
    Drupal doesn't require jQuery any more, so it's already supported. You just need to add it to the page via a library
    – Clive
    Commented Mar 16, 2017 at 14:30
  • 1
    Hi Clive, got a link to some docs on how to accomplish this? (for reference) Thanks!
    – Rob C
    Commented Mar 16, 2017 at 14:39
  • He literally just means to add the file using a library, just as you would add any JS file in Drupal. drupal.org/docs/8/creating-custom-modules/… Commented Aug 18, 2017 at 21:03

2 Answers 2

3

There is an ongoing discussion on the Drupal core issue queue: Update jQuery to version 3.

The issue has been marked fixed on August 1, 2017. The patch has been committed on Drupal 8.4.x and Drupal 8.5.x.

1

As Clive said, you can add whatever version of jQuery you want to a page. However, there's an issue here worth following Update jQuery to version 3

Now that jQuery 3.0 has been released jQuery 2.x will only be receiving security updates. I know what we've had discussions about updating specific libraries in the past. But there are a few compelling reasons why we should consider updating jQuery to 3.x

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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