admin管理员组文章数量:1208155
When i run my site on mozilla i got this error above.Here some code snippet which might be helpful
<script src=".js"></script>
<script src=".11.2/jquery.min.js"></script>
<script src=".3.4/js/bootstrap.min.js"></script>
<script src=".min.js"></script>
<script src=".jquery.js"></script>
<script src=".validate.min.js"></script>
<script src=".min.js"></script>
But it's work fine on chrome.I don't know why this problem are showing.I'll helpful if anyone tell me the reason
Thanks in advance
Edited : i forgot to mention that all my javascript are called in the bollom of the page
When i run my site on mozilla i got this error above.Here some code snippet which might be helpful
<script src="http://www.iclubz.com/js/jquery.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="http://www.iclubz.com/js/readmore.min.js"></script>
<script src="http://www.iclubz.com/js/chosen.jquery.js"></script>
<script src="http://www.iclubz.com/js/jquery.validate.min.js"></script>
<script src="http://www.iclubz.com/js/fileinput.min.js"></script>
But it's work fine on chrome.I don't know why this problem are showing.I'll helpful if anyone tell me the reason
Thanks in advance
Edited : i forgot to mention that all my javascript are called in the bollom of the page
Share Improve this question edited Aug 25, 2015 at 7:14 Mohib asked Aug 23, 2015 at 11:20 MohibMohib 1751 gold badge5 silver badges21 bronze badges 1- 8 Well, for one thing, you're including jQuery at least twice. It's not the problem, but it's a problem. – T.J. Crowder Commented Aug 23, 2015 at 11:21
3 Answers
Reset to default 17Make sure to load jquery.js file before loading bootstrap. This solved my problem.
That error can only be caused by one of three things:
Your JavaScript file is not being properly loaded into your page
You have a botched version of jQuery. This could happen because someone edited the core file, or a plugin may have overwritten the $ variable.
You have JavaScript running before the page is fully loaded, and as such, before jQuery is fully loaded. You should check the Firebug net panel to see if the file is actually being loaded properly.
If not, it will be highlighted red and will say "404" beside it. If the file is loading properly, that means that the issue is number 2.
Make sure all javascript code is being run inside a code block such as:
$(document).ready(function () {
//your code here
});
Your first load jquery.js(min) then boostrap load
<script src="/node_modules/bootstrap/dist/js/bootstrap.js"></script>
本文标签: Error Bootstrap39s JavaScript requires jQueryStack Overflow
版权声明:本文标题:Error: Bootstrap's JavaScript requires jQuery - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738736777a2109611.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论