Trying to dynamically edit cells based on different JQuery events. This is what I'm hoping that should be done to the data (putting together the fns in simpler way)
var d = table.cell(rowindex,cellindex).node().remove(".custom-class1");
table.cell(rowindex,cellindex).data(d);
Example data on cell,
<td>
<span class="custom-class1"></span>
<span class="custom-class2"></span>
</td>
The cell data should be replaced with,
<td>
<span class="custom-class2"></span>
</td>
Thanks in advance!