OnBegin is what you're looking for:
using (Ajax.BeginForm("Action", "Controller",
new AjaxOptions() {
OnBegin = "alert('Replace with validation logic.')"
}))
UPDATE
Something like this:
function onSubmitFeedbackBegin(context) {
if (uploading > 0) {
return false;
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…