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!