My datatable loads perfectly except the columndefs do not work. Anybody got a clue? Please help. I just want to add a click event to every cell in column 1. I get no errors either. It works in this example on the end column...https://datatables.net/examples/ajax/null_data_source.html
var table = $mytable.DataTable( {
"serverSide": true,
"ajax": {
"url": url_string,
"cache": true,
"columnDefs": [
{"targets": 1,"data": null,"defaultContent": "<button>Select Image ID</button>"} ,
]
},
});