Reputation: 1
When I use the jQuery.js, it says that $ is not defined
. Following is my code, and I have tried the solutions, like adding the tag for jQuery first in HTML, change the logic of my code. However none of them work for me.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/wow/wow.min.js"></script><script>new WOW().init();</script>
<srcipt src="js/manific-popup/jquery.magnific-popup.min.js"></srcipt>
<script src="js/custom.js"></script>
custom.js
$(function(){
$("#work").magnificPopup({
delegate: 'a',
type: 'image'
});
});
Upvotes: 0
Views: 94
Reputation: 11045
Checklist for $ is not defined
:
type="text/javascirpt"
instead of type="text/javascript"
. (Not applicable in your case)response.clear
type="text/javascript"
Upvotes: 1
Reputation: 18923
$ is not defined
can be solved by downloading the full jquery file and not the minified version.
Use this version and make sure that you have added it in your html.
Upvotes: 0