php - jquery datatable - How to use render function get data from another column -


i have add button in each row ,but want check if info column data n/a, not shown button, have try set render below in 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 appreciated. willing post more information if help.

working link here

"render": function(data, type, full, meta ) {     if (full.info != 'n/a') {         return "<button href='" + row.index() + "' class='btn btn-info'>view</button>"     } else {         return ""     } } 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -