Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

233
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda