Jquery submit() function doesn't work

thesalmonator

New Member
Here's my code:\[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="http://stackoverflow.com/questions/12806626/images/download_normal.png" onmouseover="mover()" onmouseout="mout()"/></a></form>\[/code\]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.
 
Back
Top