The element ".transferaction" is a dynamically added row to a table. So, at the time of setting up this click event, I don't know the parent element. Is there a way to use a jquery selector can refer to the parent element? Code: $(".transferaction").parent() doesn't work
$(".transferaction").parent().on("click", ".transferaction", function (event)
{
top.copyRow(this, null, ['odd', 'even']);
});
Do you use ".transferaction" for the event?
If so you can do this:
$(document).on("click", ".transferaction", function(e){
var $this = $(this);
var parent = $this.parent();
// Do something with parent
});