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

148
Views
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 answers
Answer question

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 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!