I found the solution
$("#toteform").submit(function(e) {
if (e.originalEvent.explicitOriginalTarget.id == "submit") {
// let the form submit
return true;
}
else {
//Prevent the submit event and remain on the screen
e.preventDefault();
return false;
}
});