I want to save in a variable the data of my table for example my json brings me 2 fields, name and date.
And I want the first name data to save it in a variable:
example: var nom = 'the first name record'; var fech = 'the first date record';
and so one by one go running in foreach
to send them and make the query
This way I add the data to my table:
$('#ejemplo').bootstrapTable({
url:'<?= base_url(); ?>index.php/ejemplo/nombres/datos',
columns: [
{field: 'nombre',filter:{type:"input"}},
{field: 'fecha',filter:{type:"input"}}
]
});
Someone to help me?