Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

259
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda