TypeError: this.on is not a function
-
Hi!
I fixed this problem on a test-host, but now I get this new error after installing the theme on my clients page. It’s supposed to make a black background under the menu when the menu hits the header text.
Here’s the content in my .js file.
jQuery(document).ready(function ($) {
var scroll_start = 0;
var startchange = $(“.hero-text-box”);
var offset = startchange.offset();if (startchange.length) {
$(document).scroll(function () {
scroll_start = $(this).scrollTop();
if (scroll_start > offset.top) {
$(“nav”).css(‘background-color’, ‘rgba(0, 0, 0, 0.86)’);
} else {
$(‘nav’).css(‘background-color’, ‘transparent’);
}
});
}
});Error: TypeError: this.on is not a function
a.fn.hoverIntent() admin-bar.min.js:1
<anonymous> admin-bar.min.js:1
.ready() jquery-1.4.2.min.js:26
L() jquery-1.4.2.min.js:33Thank you in advance!
- The topic ‘TypeError: this.on is not a function’ is closed to new replies.