Using jQuery, considering the variable **dxl** is an array of links to .pdf files, how can I cycle the values of the dxl array, in an element's attribute, when a button is clicked?

Example:

**HTML**

```
<a href="#"> Push </a>

```

**jQuery**

```
var dxl = ["d.pdf", "x.pdf", "l.pdf"];

$("a").click(function(){
    $("#button").attr("href", dxl);
    $("#button").attr("download", pdf_name);
});

```

Looking to download 3 .pdf files after **Push** button is clicked; cycling the array values in the `href` attribute. Button is clicked, `href` receives the first array value, downloads it, then next array value is passed to `href` (without having to click button again).