I have an editable table in html, when I click save, I need to get all the data from the table, send it by ajax to the page that INSERT all rows in the database.
My question would be:
HTML table structure
<tbody class="list_modificacao"><tr>
<th scope="row">JOAO</th>
<td class="text-center option_divisao bg-dark luz">-</td>
<td class="text-center option_divisao bg-dark agua">-</td>
<td class="text-center option_divisao bg-dark agua_campo">-</td>
</tr><tr>
<th scope="row">MARIA</th>
<td class="text-center option_divisao bg-dark luz">-</td>
<td class="text-center option_divisao bg-dark agua">-</td>
<td class="text-center option_divisao bg-dark agua_campo">-</td>
</tr><tr>
<th scope="row">JOSE</th>
<td class="text-center option_divisao bg-dark luz">-</td>
<td class="text-center option_divisao bg-dark agua">-</td>
<td class="text-center option_divisao bg-dark agua_campo">-</td>
</tr>
</tbody>
BD Framework
+------+-----+------+------------+
| NOME | LUZ | AGUA | AGUA_CAMPO |
+------+-----+------+------------+