Javascript errors, uncaught type error

Solution:1

You’re using jQuery in compatibility mode.

When you use it like that, jQuery is not define as “$” (because other frameworks like to use this var name).

You should change your jQuery file or simply use this piece of code:

var $ = jQuery;
You can also use “jQuery” instead of “$”.

Solution:2

Instead of $ use jQuery. You could also do:

jQuery(document).ready(function ($) {

and refer to the variable as $ in that scope.