Y
Y
Yuri Yanin2015-12-14 16:37:45
JavaScript
Yuri Yanin, 2015-12-14 16:37:45

Why doesn't Jquery work after hosting transfer?

Transferred the site to beget from a local server, transferred the databases, replaced all addresses with new ones. All my scripts work fine, and everything that worked on Jquery stopped showing signs of life. There are no errors in the console. What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Serdji, 2015-12-14
@VPank

Try to enter $ in the console, if the response is function (a,b){return new n.fn.init(a,b)}, then JQ is connected, if not, then you need to check the links to the library and the JS file itself with which you worked. In fact, it will be easier and better to connect JQ via CDN such as google

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

This is exactly how the library will work.

H
hostwell, 2015-12-17
@hostwell

there is only one reason, the jquery.js file is not loaded. And the reason can be found through the browser. First you need to look where the file is loaded from. Most of all, the path to the file is specified incorrectly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question