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

187
Views
My ajax response not showing into my dataTable

I am trying to show my ajax json response into data table. I am using datatable AJAX option but nothing is working.

$(document).ready(function() {

      $('#example').dataTable( {
            "ajax": {
            "url": "https://2057-185-202-239-227.ngrok.io/serviceprovider/billByServiceProvider",
            "contentType": "application/json",
            "type": "POST",
            "data": function ( d ) {
            return JSON.stringify( d.serviceProvider = sessionStorage.getItem("Services_id") );
             },
             "dataSrc": function(json){
                console.log(json);
             }
         }
    }); 
    });

Thanks in advance for help :)

over 4 years ago · Santiago Trujillo
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!