danidacar danidacar - 7 months ago 47
jQuery Question

How to see/display/debug the selected dom nodes with jquery?

Is there any good way to see/debug the result of a jQuery selector ?

Let's say we have something like this

var arr = $('div > span').parent();

How can I see what the selector contains?


Just to make this a bit harder: Can I do the same in http://jsfiddle.net/ ?

var arr = $('div > span').parent();