Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

556
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda