I facing small issue. How to get variable value from another function in Datatables.
My Javascript code:
var id = "";
var type = "";
show = function(id, type){ //id=5, type=3
id = id;
type = type;
}
var pTable = $("#example").DataTable({
processing: true,
serverSide: true,
sort: true,
ajax: {
url: "/url/"+id+"/"+type,
dataType:"json"
},
Console log result:
GET: /url///;
How to get value ? Sorry for bad english.