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

196
Views
Checkbox be checked, unique custom attribute

How can a checkbox be checked using JavaScript: (cpf="45258236978")

<input type="checkbox" style="vertical-align: bottom;" id_pasta="26337043" cpf="45258236978" id_tarefa="122525428">
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

let check = document.querySelectorAll('input[type=checkbox]');
for (var i = 0; i < check.length; i++) {
    for (var ii = 0; ii < check[i].attributes.length; ii++) {
        if (check[i].attributes[ii].nodeValue == '45258236978') {
            check[i].checked = true;
        }
    }
}
about 4 years ago · Juan Pablo Isaza Report

0

 document.getElementById("yourCheckboxID").checked = true;
about 4 years ago · Juan Pablo Isaza Report
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!