I have these lines of code which is the cause of an error message. It seems to me that there is no mistake in the code, but I guess I'm wrong:
jQuery(document).ready(function() {
console.log("ready!");
$("#hover-table").hover(function() { // THIS IS LINE 164
$('#table-wrapper').show();
}, function() {
$('#table-wrapper').hide();
});
});
I get this error message in the Chrome console. The console.log
is printed with no problem.
(index):164 Uncaught TypeError: $ is not a function
at HTMLDocument. ((index):164)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at HTMLDocument.K (jquery.js?ver=1.12.4:2)
What am I missing here?