How can we set the checkbox based on Json data?
How can we set the checkbox based on Json data?
Good day,
If I have the Json object as below, how can i set the checkbox with the return value? I'm using following code
[code]
var oTable = $('#mytable').datatable({
"bProcessing" : true,
"sAjaxSource" : "myinput.txt"
"aoColumns" : [
{"mdata": "Selection"},
{"mdata": "Server_Name"},
]
})
[/code]
[code]
{
"aaData":[
{
"Selection":"true",
"Server_Name" " "server1"
}
]
}
[/code]
If I have the Json object as below, how can i set the checkbox with the return value? I'm using following code
[code]
var oTable = $('#mytable').datatable({
"bProcessing" : true,
"sAjaxSource" : "myinput.txt"
"aoColumns" : [
{"mdata": "Selection"},
{"mdata": "Server_Name"},
]
})
[/code]
[code]
{
"aaData":[
{
"Selection":"true",
"Server_Name" " "server1"
}
]
}
[/code]
This discussion has been closed.