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

81
Views
Datable not showing anything

datatable is not showing up. while debugging in firefox code inspector datatable code is shown in grey color.

Javascript code of datatable

  $("#kt_datatable_noc").append('<table class="table table-striped table-bordered dt-responsive nowrap" style="width:100%" id="kt_datatable_noc1"> <thead><tr id="addDTRowHeading"><th>Portfolio Name</th><th>Expiry date</th><th>Expiry days</th></tr></thead></table>');
 
     var dt_table = $("#kt_datatable_noc1").DataTable({
    responsive: true,
    searchDelay: 500,
    processing: true,
    serverSide: true,
    ajax: {
      url: "getNocExpiryDashboardList",
      cache: false,
      data: function (d) {
        d.datat = sendingData();
      },
    },
    lengthMenu: [10, 25],
    iDisplayLength: 10,
    //        "paging": false,
    ordering: false,
    searching: false,
    //        "dom": '<"top"i>rt<"bottom"flp><"clear">',
    columns: [
      {  data: "portfolioName", width: "33%", className: "word-break" },
      {  data: "toDate" , width: "33%"},
      {  data: "datediff" , width: "33%"},
     
      
    ],
  });
  
}

html code of datatable div

<div class="kt-datatable display" id="#kt_datatable_noc"></div>

data returned by json object by request


{
    "aaData": [
        {
            
            "toDate": "2021-09-16",
            
            "portfolioName": "abc",
            "datediff": "-133",
            
        },
        {
        
            "toDate": "2021-09-16",
            
            "portfolioName": "asb",
            "datediff": "-133",
            
        }
    ],
    "sEcho": 0,
    "iTotalRecords": 2,
    "iTotalDisplayRecords": 2
}

datatable is not showing up. firefox code inspector datatable code is shown in grey color.

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!