I am starting with ajax and got a problem with a download i would like to make via ajax. There are several ways to start using jquery on your web site. I have tried the below, but the file is not getting downloaded. The second version helps you update code to run on jquery 3. To locally download these files, rightclick the link and select save as. In my web application, i am trying to implement a download file functionality. At minimum all you need to do is select the element you want to be able to drop files onto, and then provide a function to loop over the array of returned files. If enabled, your code will be formatted when you actively save your pen. Resetting a multistage form with jquery you may also be running into an issue where the values are being repopulated by the struts value stack. Download the compressed, production jquery migrate 3. In order to make jquery knows the file download just ocurred, your response header must contains setcookie.