jQuery Plugin For Simultaneous Downloads With One Click - multiDownload
| File Size: | 80.3 KB | 
|---|---|
| Views Total: | 11953 | 
| Last Update: | |
| Publish Date: | |
| Official Website: | Go to website | 
| License: | MIT | 
 
multiDownload is a super lightweight jQuery plugin to create a link that allows the visitor to download multiple files simultaneously.
How to use it:
1. Create a set of links with the same class you want to download at one time.
<a href="1.zip" class="my-file">File 1</a> <a href="2.zip" class="my-file">File 2</a> <a href="3.zip" class="my-file">File 3</a>
2. Create a link to download all the 3 files.
<a href="#" id="download-all">Download All</a>
3. Call the function on the Download All link and done.
$('#download-all').on('click', function (event) {
  event.preventDefault();
  $('.my-file').multiDownload();
});
4. Specify a custom delay between downloads.
$('#download-all').on('click', function (event) {
  event.preventDefault();
  $('.my-file').multiDownload({
    delay: 500
  });
});
Changelog:
2015-04-01
- v4.0.2
This awesome jQuery plugin is developed by biesiad. For more Advanced Usages, please check the demo page or visit the official website.





