I have add button in each row ,but I want to check if info column data is N/A, then not shown the button, I have try to set render as below in my code ,but it's not work
{
"targets": -1,
"data": null,
"render": function ( data, type, row )
{
if (row.info != 'N/A') {
return "<button href='" + row.index() + "' class='btn btn-info'>View</button>"
} else { return "" }
}
}
}
Any help/advice is greatly appreciated. Willing to post any more information if it will help.