a.nodeName è indefinitoa.nodeName è errore non definito Jquery
ho guardato questo in su ma le spiegazioni non sembrano affatto chiaro per me.
function deleteThisRow() {
$(this).closest('tr').fadeOut(400, function(){
$(this).remove();
});
}
<tr>
<td>blah blah blah</td>
<td>
<img src="/whatever" onClick="deleteThisRow()">
</td>
</tr>
All'interno deleteThisRow', 'this' farà riferimento a' finestra ', non l'immagine '. Perché non associ il gestore di eventi con jQuery? –