[jQuery] jQuery AJAX Dynamic File Download

[jQuery] jQuery AJAX Dynamic File Download


I've got an export functionality built into my site, whereby users can
choose which rows of a data table to export. They export by clicking
an "Actions" dropdown and choosing "Export". This triggers an AJAX
call that posts which ids to export to a PHP script, which, in turn,
builds an Excel document on the fly and delivers it to the user.
Here is my code:
<input type="checkbox" id="selected1" name="Interviews[]" value="21" /