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

147
Vistas
What is the best way to download mulitple images using jquery

I have a section in which I have multiple images now on click I would like to download all.

Here is what my images look like

enter image description here

and here is how I am downloading those images using jquery

HTML

<button class="button" onclick="downloadImages()">Download</button>

JS

function downloadImages(){
    let link =  $(".grcode-image");
    console.log('link', link)
    link.click();
}

When I click the download button only I see is the console log

enter image description here

What am I doing wrong here? and what do I need to do to be able to download all images at once?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you only need download the images without zip:

Just map the array and click:

function downloadImages() {
    $(".grcode-image").each(function (index, currentElement) {
      currentElement.click();
    });
  }
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