Hello I have a page with <a> links to download pdf files. Now I have to put a button to download all files available on that page. Now how to trigger a click event on all links on button click ?
<button class="download-all"/>
<a class="link" href="file.html"/>
<a class="link" href="file2.html"/>
Now on button click all the links with link class should be clicked.