http://joshpangell.github.com/simple-dom-chain/
This is a simple jQuery plugin that returns a full DOM chain from a clicked element.
To inspect every element on the page
$("*").CssInspector({
callback: function(results) {
console.log(results);
}
});
The callback function will return an array of results and can be turned into a string with join
results.join(", ");