How to import external Jquery?

Asked

Viewed 1,089 times

1

Good afternoon, my friends

I have a problem importing external javascript, (in the case of Jquery library)

The files are in the correct folder but when I call by src="" nothing happens.

Thanks for your help.

print de tela

  • 2

    jquery.min.js should come before bootstrap.min.js

  • 1

    My dear Maurivan, You saved my hero, it worked. Thanks

  • Why didn’t it work in the previous order?

  • Simply because bootstrap has jQuery as dependency and not the other way around. I recommend checking the documentation: http://getbootstrap.com/getting-started/#Whats-included

  • Oh yes, thank you very much for the clarification.

1 answer

3


Exactly as it was said by colleague Maurivan. When we use Bootstrap we should import css files and js files.

In the case of the files js we must obey the order of precedence of who depends on whom. That in this case Bootstrap depends on Jquery, so it must come first in the loading order.

  • Thanks, I had no idea you had an order, so it didn’t work

Browser other questions tagged

You are not signed in. Login or sign up in order to post.