I am using dynatable
plugin. I want to know how do I clear(remove all records) the table before I insert new records in table. Currently, the table is appending new records to the previous records.
My code:
response = $.parseJSON(data);
var dynatable = $('#printIDs').dynatable({
dataset : {
records : response
}
}).data('dynatable');
dynatable.settings.dataset.originalRecords = response;
dynatable.process();
I had some trouble with this as well. My final code ended up looking like: