There is something like this:
<tr onclick="console.log($(this));"> I know its bad but its a legacy code. I would like to get the reference of this TR but this:
<tr onclick="console.log($(this));"> Nor this:
<tr onclick="console.log(this);"> Works, it thinks that this is <tr onclick=" event itself.
thisrefers to the DOM object of the element<tr onclick="console.log(this);">works, it thinks that this is<tr onclick="event itself." What is "it"? Can you create a stacksnippets to demonstrate?Node.cloneNode()?