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

206
Views
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};            
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!