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

217
Views
How to get all ID's of all Checked data in all pages on Datatables

Hi i have my datatables with checkbox at the first column i able to get the checked checkbox id but i cannot get all the data on the other page

i have this to render my datatables

 var tableDelcar;
    function LoadTableDelcar() {



        tableDelcar = $('#tblDelcar').DataTable({
            //dom: 'Brtip',

            order: [[1, 'asc']],
            buttons: [
            'csv', 'excel', 'pdf', 'print'
            ],
            pageLength: 10,
            "ajax": {
                async: false,
                type: 'POST',
                contentType: 'application/json',
                url: 'MaintenancePage.aspx/getCarDelMaintable',
                "dataSrc": "d",
                dataType: 'json',
            },
            "columns": [
          {
              "d": null,
              render: function (data, type, row, meta) {

                  return '<input type="checkbox" class="select" id="' + row.CAR_NO + '"></td>';
              }, title: "Action"
          },
        { "data": "CAR_NO", title: "Car No" },
        { "data": "FINDINGS", title: "FINDINGS" },
        { "data": "ActionOwner", title: "Action Owner" },
        { "data": "Auditor", title: "Status" },
        { "data": "COORDINATOR", title: "COORDINATOR" }

   
            ]
        });


    }

and this is my function on getting the ID's of the checked checkboxes

  function DeleteCar() {
    

       var IDs = $("#tblDelcar input:checkbox:checked").map(function () {
            return $(this).attr("id");
        }).get(); alert(IDs);
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Make sure your DOM is loaded when you call your function in the other page. you have error ?

about 4 years ago · Juan Pablo Isaza Report
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!