I have a requirement to download multiple attachments by clicking on checkboxes in the website. Infront of attachments field, these checkboxes present and it may contain one or more attachments. Each and every attachment will have a single checkbox. We need to click on the checkbox and then on the file(pdf, doc, any file) to download or we can directly click on the file(pdf, doc, any file) to download. Could anyone suggest how we can write a code to identify single and multiple checkboxes and downloading those attachments?