Dynamically I've created a link with download attribute:
var link = $('<a>', {
href:file_url,
download:file_name
}).appendTo('body');
By clicking on that link programmably I want to download a file with given file name.
Is it possible to trigger GET request by clicking on that link by jQuery?
I know about jquery.fileDownload.js
plugin, but I need to set a file name on client side not on server side.