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

262
Views
How to fetch the value of the checkbox that is stored in name array

enter image description here

As im dispalying the check boxes with buttons in UI for user to check the books that they currently using, as fivebooks array contains book name and the publication details of the book, as the user checked the allbooks[][] array will hold those checked book data

for example: allbooks[0][1,2] it contains book 1 and 2 if the user of firstlibrary(0th index) clicked check boxes of 1, and 2

as i need to fetch the allbooks[][] array and view the values

so how to fetch the array and view the values of the array

in allbooks array first index will be the library index

it means there will be morethan one library and each library has five books

i need to fetch the array and view the books that are currently checked

fivebooks array

var fivebooks = {
   "how_it_flys":1, "players_in_ground":2, "lets_Start_gaming":3, "gaming_stars":4,
   "invisible_man":5
 }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

After generate your DOM you can for exemple

const checkboxs = document.querySelectorAll('input[type="checkbox"]');
for (var i = 0; i < checkboxs.length; i++) {
  console.log(checkboxs[i].checked);
}
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!