Table cell value update
Table cell value update
aneesma
Posts: 2Questions: 2Answers: 0
hii..all..
i am using codeigniter. I need to change the table cell values and same changes in generated excel dynamically after a button event in the ajax response. But table is updating in the data table grid, but it remains unchanged in the generated excel.. i used following code in the ajax response (since the table cell values changes on an event)..codes used for updating table cell is separated with ** for easily identifying..Thank you.
success:function(data){
var obj = JSON.parse(data);
$.each(obj.value,function(key,value){
$.each(value,function(ind,val){
});
});
alert(obj.message);
*******
var table = $('#report').DataTable();
var UpdateTD = $("#b"+id);
table.cell( UpdateTD.attr("id") ).data( UpdateTD.html("<p>hgggg</p>")).draw();
*******
}
This discussion has been closed.