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

138
Visualizações
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 à 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