How populate value of a field
How populate value of a field

in DataTables
Hello friends
I want populate value of a field from another table use jquery $.ajax method
code :
{ data: null,
render : function ( data, type, full, meta ) {
$.ajax({
type: "POST",
url: "funcs.php",
data: {id : data.id},
dataType: "json",
processdata: true,
cache: false,
success: function (json) {
result = json;
}
});
return result;
}
}
But the code did not work and I saw this error :
ReferenceError: result is not defined .
Where is the problem?
This discussion has been closed.