I used to be able to do console.log(somejQueryObj);
and it logged in an array all of the DOM elements that are in the object that I could click and go to the inspector.
Now it does something like this:
[prevObject: p.fn.p.init[1], context: , selector: ".next ()"]
which can confuse many people.
How do I make it so that Chrome logs how it used to log jQuery elements?
I am in:
Google Chrome 23.0.1271.97 (Official Build 171054) m
To do it for each element so that you can hover over it, try something like this:
is another way
I have found a solution that would log them individually if need be (but it could clutter the log if it is BIG selector):
http://jsfiddle.net/maniator/ya7As/
Update: I made a jQuery plugin to bring back the old style logging: jquery.chromelog.
You could create a little function to log all elements on one line:
Usage: