I am trying to change an `<a>` tag download attribute value with the input from a user.

The user should be able to enter the file name and then click download. I have searched all over and cannot seem to find the answer. Can you please give me some advice?

HTML:

```
 <input id="filename" type="text" onChange="inputChange(event)"/>

 <a download="RENAME-ME.csv" href="#" class="download">
       Download your file
 </a>

```

Javascript:

```
function inputChange(e) {
   console.log(document.getElementById("filename").value);
}

```