P
P
pers13072015-10-29 08:21:27
JavaScript
pers1307, 2015-10-29 08:21:27

Why is JQ not working in bootstrap?

Heeeelp guys!

I am making a new layout for the block on bootstrap, but for some reason jq does not work. IDE writes that the $ sign is generally something foreign.
But, if I make effects using bootstrap itself, then they work, simple js too. I've been toiling for 3 hours already, Google does not help.

I am attaching a link to the code:
https://github.com/pers1307/Verstka

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aleks Front, 2015-10-29
@pers1307

1. In layout, you can not specify type="text/javascript" - it is set by default for the script Just by the way.
2. And try to replace your redi document with this option, with jquery no conflict

"use strict";

console.log('script.js'); // убидитесь в подключение вашего файла. 

(function ($) {
  $(function () {
    // тут набирайте свои обращения.
  });
}) (jQuery);

D
Dmitry Kuznetsov, 2015-10-29
@dima9595

Maybe just an old version of jQuery?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question