2

I am trying to build a UI using thymeleaf and i get the following error in the console

enter image description here

below is the code for my html.

enter image description here

can someone please let me know what i am doing wrong.

3 Answers 3

3

You have added jQuery-ui but it requires jQuery. Same for Bootstrap.js, it requires jQuery. Also, you're adding a number of libraries and stylesheets twice. For example, if you have bootstrap.min.js, you don't need bootstrap.js, because the former is a minified version of the later.

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

2 Comments

thanks i did that change and now I dont see any errors but my UI does not pick the css. can u let me know what i am missing ?
It is possible that the location of the file is incorrect. In your Internet Browser open Inspection Tool and click on Network tag. Can you see any errors?
2

As the error says: you need to include jQuery library. You've provided jQuery UI, which is the quite different library.

Comments

1

To working with Bootstrap Js, There choice is Jquery. Without Jquery Bootstrap js will not work correctly.

So, first Add jquery.min.js and then try to insert bootstrap.min.js. Like,

<script src="jquery.min.js"></script>
<script src="bootstrap.min.js"></script>

And then hope all errors will gone.

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.