During trying to combine submit and upload in one form, I have a problem in upload but for submit form it\'s no problem.
JQuery + Ajax :
$(\"#oqcsubm
Better is using a simply way, with separate process :
$("#oqcsubmit").click(function() {
if($("#oqc").valid()) {
var params=$("#oqc").serialize();
$.ajax({
type:"post",
url:"doinput.php",
data:params,
cache :false,
async :false,
success : function() {
$(".dt").val("");
$(".stat").val("");
return this;
},
error : function() {
alert("Data failed to input.");
}
});
return false;
}
});
both can works normally,the best way is do not do the complicated way if the easy one can be done.