The reference to jQuery - the $ function in this case - is not passed as a parameter. The function gets the event object instead. By specifying it in the parameters list, you're overwriting it. There are multiple avenues to fix this.
If you're not using noConflict, it can be easily fixed by removing $ from the function's definition: jQuery(window).load(function() {
. If you do, then you can either use jQuery()
instead of $
as such
jQuery(window).load(function(event) {
jQuery('#testvideo').flexslider({ //undefined TypeError:$ is not a function
slideshow: false
});
});
or wrap everything in a IIFE:
(function($) {
$(window).load(function() {
$('#testvideo').flexslider({ //undefined TypeError:$ is not a function
slideshow: false
});
});
})(window.jQuery);