I changed the text of a column in my Bootstrap Table through jQuery:
$('#my_td').text('45,999.54$');
When I get the row object through
var table_data = $('#my_table').bootstrapTable('getSelections');
console.log(table_data);
The last column has the old value. See screenshot. The left red square is the value I get through getSelections
and the right red square is the value I changed through jQuery.
What is the right way to change the last column value and get that same value when using getSelections
?
Answer exemple
This worked
$('#listing-employees-massive').bootstrapTable('updateRow', {index: row_index, row: {
identifier:value
}});
You can use the updateRow method in order to update the row info