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

129
Vistas
How return two or more elements in front of .push($(this).val());?

I have a function that submits information to create a prerequisite on my database. Information "templates" and "version" are on the same checkbox (look the picture for understand) and with my code, i want to get the id_template and the version but I just have the id_template. What can replace push($(this).val()) to get these two elements?

template_screenshot

var templates = [];

console.log(templates);
console.log($(this));
if(mode == 'create') {
    if( $('.selectTemplateRow:checked').length > 0 ){
        $('.selectTemplateRow:checked').each(function(){
            templates.push($(this).val());
        });
    }
}


var project_name = $('#project_name').val();
var sharepointLink = $('#sharepointLink').val();


var data = { _token: CSRF_TOKEN, project_name : project_name, id_user : id_user[0], id_template :id_template, id_template : id_template, version :version, sharepointLink : sharepointLink};            
about 4 years ago · Juan Pablo Isaza
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