How populate value of a field
How populate value of a field
![amir7sh](https://secure.gravatar.com/avatar/e0805b478e2fa9a785487873ec6d29ee/?default=https%3A%2F%2Fvanillicon.com%2Fe0805b478e2fa9a785487873ec6d29ee_200.png&rating=g&size=120)
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.