javascript - Uncaught TypeError: $ is not a function -
this question has answer here:
- jquery - $ not defined 34 answers
i can't solve problem console gives error: uncaught typeerror: $ not function. code points to:
<script type="text/javascript"> $(document).ready(function() { $(".linky").click(function(){ var t = $(this); //<-error points here var y = $("#0"+t.attr("id")).offset().top; $('html,body').animate({scrolltop: y},500); }); }); </script> any appreciated!
you need include jquery script
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
Comments
Post a Comment