I presume the fix is wrapping element instead of $(callingElement.closest("table")) into $(callingElement).closest("table") as is the same technique already used redeclaring the table in updateEditableCell (var table = $(callingElement).closest("table").DataTable().table();)