Here's my code:
function checkupload(){ if(upload == false) { alert("Please upload a file"); return false; } (...) $('#download_form').submit(); alert('submitted'); } My HTML: <form action="http://localhost/rendu/download.php" method="post" id="download_form"> <input type="hidden" name="57" id="in_57"/> <input type="hidden" name="72" id="in_72"/> <input type="hidden" name="png" id="in_png"/> <input type="hidden" name="ico" id="in_ico"/> <a onclick='checkupload()'><img src="images/download_normal.png" onmouseover="mover()" onmouseout="mout()"/></a> </form> No matter what I do the form won't get submitted. I've taken a look at the requests and there's no request sent to the download.php page, but the alert message is displayed.
What am I missing? Thanks.