I have a HTML form with a file upload. i want to be able to have two buttons - one that will submit the form and another that will upload a file.
i have tried using:
document.getElementById("logo").onchange = function() {
$('#upload_logo').click();
};
to click the upload_logo button when the file is selected but its not working
any ideas?