I can't for the life of me work this one out. I have js running and 'container state..' is a console log from the running js on the page. It's displaying a selector, but if i want to do anything within the console it just returns null. I'm assuming somehow i'm over writing jQuery function somewhere, as if i called jQuery
>>> $
function()
This is how i am calling a selector
Container state 3 jQuery(div.module-carousel)
>>> $('body')
null
jQuery uses 2 namespaces, jQuery
and $
. Another library could have used the $
. Try using jQuery
instead of $
(assuming that it isn't overridden as well):
jQuery('body');
or wrap jQuery in an immediate function and use $
in it so you don't need to replace $
in the existing code:
(function($){
//"$" in here is jQuery
//code that uses $ as jQuery will work in here
}(jQuery)); //pass in jQuery and execute
you can use this before writing any command on console.
$ = jQuery.noConflict();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With