With $(this).data("events"); returning [object Object], I need to see what’s actually going on in there. I found this:
var Finder = "";
$.each($(this).data("events"), function(i, n){
Finder += "Name: " + i + ", Value: " + n + " | ";
});
However, n still returns [object Object]:
EDIT: (Output) —
Name: click, Value: [object Object] |
—
Is there an efficient way to show everything inside that sucker, kind of like print_r in PHP?
console.log($(this).data("events"))in Chrome (or other browsers) would allow you to drill into the object.Ctrl+Shift+J gets you to the console in Chrome.