How to change value of column dynamically

How to change value of column dynamically

DonRomantikoDonRomantiko Posts: 1Questions: 1Answers: 0

I wanted to have a dynamically created column in my table named "Start" and its database value is "1" this column is a link BTW, and it will be changed to Expired when its database value changed to "2" i don't have any idea how to do this please help me. BTW im using codeigniter framework here

this is how i put my data into my datatable:

$(document).ready(function() {
var baseUrl = $('baseUrl').val();
var table = $('#getwiwit').DataTable( {
"ajax": baseUrl+"dashboard.php/acceptedtransaction/for_source/",
"columns": [
{ "data": "fname" }
]
});

setInterval( function () {
    table.ajax.reload(null, false); // user paging is not reset on reload
}, 5000 );

});

This discussion has been closed.