I am trying to use jQuery.noConflict() , but in the window.load function I get the error "$ is not a function".
my code is:
jQuery.noConflict(); jQuery(document).ready(function($) { /** Dropdown Menu **/ $('ul.tabs li:has(ul)').bind("click", function() { $(this).find('ul').show('normal'); //event.stopPropagation(); }); $('ul.tabs li').bind("mouseleave", function() { $(this).find('ul').hide('normal'); //event.stopPropagation(); }); }); jQuery(window).load(function($) { $('#container').fadeIn('normal'); });
if I use jQuery instead of '$', it works fine, but can I continue to use '$'? Does anyone know / understand what is wrong with this? thanks!
source share