Apparently you are using both jQuery and Mootools and both of them do use $
as an alias to a core function. Probably the $
function which is generating this error is the Mootools function. I’d suggest you to try to write your jQuery code using jQuery
instead of $
so you can confirm my point is right or not.
Good luck!