Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

557
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!