Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

105
Vistas
I display a table with ajax in real time and I check some lines which I return in my views

I have this problem in summary: when i fill my input automatically i display an array using ajax , and on the same table I shock a few lines and when I send back to my views through a button I have nothing that is displayed either at the console or the terminal.

Js & Ajax

enter code here

$(document).on("click","#final",function(){
    const list_entrepot = getSelectedVals1();
    const list_fournisseurs = getSelectedVals();
    selection = {list_fournisseurs,list_entrepot};
    $.ajax({
      async: false,
      type : "GET",
      url : 'fournisseur_ajax',
      data :{
        'csrfmiddlewaretoken': csrf,
        'selection':selection,
      },
      success : (res) =>{
        console.log(res.data)
      }
    });

  });

function getSelectedVals(){
     var tmp =[];
     $("input[name='fournisseur_tab']").each(function() {
     if ($(this).prop('checked'))
     {
        checked = ($(this).val());
        tmp.push(checked);
     }
     });
     var filters = tmp.join(',');
     console.log(filters)
     return filters;
  }
over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda