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

204
Views
¿Cómo devolver dos o más elementos delante de .push($(this).val());?

Tengo una función que envía información para crear un requisito previo en mi base de datos. La información "plantillas" y "versión" están en la misma casilla de verificación (mire la imagen para entender) y con mi código, quiero obtener el id_template y la versión , pero solo tengo el id_template . ¿Qué puede reemplazar push($(this).val()) para obtener estos dos elementos?

plantilla_captura de pantalla

 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};
over 4 years ago · Santiago Trujillo
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!