I used $(this)
in a function like this $(document).on("dblclick", "td.edit", function(){ makeEditable($(this)); });
to obtain the html element info that is triggered.
But when I do either console.log
or alert
, the result will shows only [object Object]
.
I wonder is there methods I can use to see what are actually inside? Thank You
After Tibos's suggested methods I get this msg in chrome console:
[Object, jquery: "1.10.2", constructor: function, init: function, selector: "", toArray: function…]
0: Object
length: 1
__proto__: Object[0]