While trying to add checkbox in eachfield of the column. Checkbox is shown correctly but when ever i check the box the box disappears. Why is that?
I tried different input tags even select tags but nothing seems to be working.
This is in JS:
{
title: "Has Billable",
orderDataType: 'dom-checkbox',
render: function(data, type, row) {
if (data.includes(row[1])) {
return '<input type="checkbox" id="billableCheck" name="billableCheck" value="billableCheck">';
} else {
return '<input type="checkbox" disabled>';
}
}
}