Aniket Narvankar

Aniket Narvankar

  • 823
  • 1.7k
  • 304.6k

jQuery Datatable

Jun 6 2020 3:22 PM
I have added a button in jquery datatable how to make it disabled base on some condition using ternary operator here is my code columns:
 
[ {'title': 'Name', 'data': 'Name', 'visible': false }, {'title':'LName','data': 'LName' }, { 'title': 'Actions', 'data': 'Name', 'searchable': false, 'sortable': false, 'render': function (data, type, full, meta) { return '<input type="button" id="btnSelect" value="Select" onclick="getD(\'' + data + '\')"/>' } } ]
 
if value in name column is A then button should be disabled how to do this i am stuck on this 

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.