2

I am using JQuery UI and the example includes these header tags:

<!--JQuery UI-->
<link rel="stylesheet" href="http://code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>

Does The first script tag use "jquery-1.12.4.js", but isn't the newest version of jQuery 2.2.4 or 3.0? Why doesn't JQuery UI use that? I already have alot of code running with V2.2.4 (that I included earlier) but when I include the second script I get conflicts and I dont want to use .noConflict and go back and replace all the "$" signs I used.

Does JQuery UI use an older version?

4
  • I assume it depends on which version of jQuery UI you're using. I'd also assume that jQuery UI would depend on the version of jQuery available at release time, or older. Commented Jul 12, 2016 at 5:55
  • This may be useful Commented Jul 12, 2016 at 5:56
  • 2
    "jQuery UI 1.12 supports jQuery 1.7 and newer." api.jqueryui.com Commented Jul 12, 2016 at 5:57
  • "when I include the second script I get conflicts" - what script? how/where did you include it? Please be specific. Commented Jul 12, 2016 at 7:37

1 Answer 1

2

jQueryUI supports jQuery version 1.7 and up. This includes jQuery 2.* and jQuery 3.* their examples are just a bit dated in that they have not updated the references to the new versions of jQuery.

You can just use your current references to the version of jQuery you are using.

The errors you are getting are because you are referencing jQuery twice.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.