Use jquery to download a file on click

Summary. The download() function is used to trigger a file download from JavaScript. It specifies the contents and name of a new file placed in the browser's 

13 Jan 2018 Downloading files from POST requests is actually a bit more complicated then it could be Note: This code uses the FPDF library to generate PDF files. AJAX Request and download file All rights reserved