8

I want to use jquery-ui widgets and so I am including jquery.ui.js. Would I also need to include jquery version file as well?

2 Answers 2

18

If you want to use jQuery.UI you have to include jQuery.js.

jQuery.UI is a jQuery plugin.

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

Comments

2

It really depends on what you want to do. If you just need basic DOM manipulation, even handling, and things like that, then use jquery.js. If you need advanced UI components and functionality (dragging and dropping, sorting, etc.) then you'll probably need jquery.ui.js.

EDIT My mistake on misreading the question. Yes, you need jquery.js for jquery.ui.js

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.