Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

555
Visualizações
DataTables warning: Non-table node initialisation (TBODY)

I want to refresh the table body when saving the updated row. I haven't used the tbody tag in my code instead I used id="mainBody" but when I try to reload I always get the subjected error.

manageBtn is the ID of the Save button in the model which is used to edit individual raw data.

<table class="table table-hover table-striped table-bordered table-dark" id="mainTable">
          <thead>
            <tr>
              <td>Job #</td>
              <td>Material</td>
              <td>Quantity</td>
              <td>Order Number</td>
              <td>Project Number</td>
              <td>Label Data</td>
              <td>Starting Serial</td>
              <td>Ending Serial</td>
              <td class="row flex-nowrap hiddenTH"></td>
            </tr>
          </thead>

          <tbody id="mainBody">
          </tbody>

        </table>
    $("#manageBtn").click(function() {
        var table = $('#mainBody').DataTable();
        table.ajax.reload();
    });
});
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda