I am using this piece of code in a function but its really buggy, the modal opens but the download doesn't.
I need the modal to open and the download happen in the background.
echo "<a id='download-item' class='button left' onclick='count();' href='".$mp3->guid."' data-toggle="modal" data-target="#myModal">Download</a>";