javascript - Uncaught TypeError: $ is not a function -


this question has answer here:

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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -