189
rated 0 times
[
196]
[
7]
/ answers: 1 / hits: 24022
/ 9 Years ago, wed, june 3, 2015, 12:00:00
I can't solve this problem where the console gives this error: Uncaught TypeError: $ is not a function
. This is the code it 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 help would be much appreciated!
More From » jquery