Hello
I have a table
<table>
<thead>
<th>Codigo</th>
<th>Nome</th>
</thead>
<tr>'insira o código aqui'
<td>1</td>
<td>Carlos</td>
</tr>
<tr>
<td>2</td>
<td>Charles</td>
</tr>
<tr>
<td>3</td>
<td>José</td>
</tr>
</table>
I would like to know if you have "get" this data and send it to php can be via json or even javascript
I tried to use this:
var dadosDataTabela = [];
function verificarTabela() {
$('.item').each(function () {
var todos_itens = {
codigo : $(this).children()[0].innerText,
nome : $(this).children()[1].innerHTML,
};
dadosDataTabela.push(todos_itens);
});
}
and to send JSON.stringify(dadosDataTabela),
But I have not yet had success as received in php. To then send this data to the bank