Home  >  Article  >  Web Front-end  >  Solution to the duplicate submission problem in the Enter submission form under IE_javascript skills

Solution to the duplicate submission problem in the Enter submission form under IE_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:50:091229browse

Just add return false after submit(). For example:

Copy code The code is as follows:

document.formname.submit();
return false;

Please pay attention in the future

I tried another method later:
Copy code The code is as follows:

if ($("#formid").validationEngine("validate")){
document.getElementById("formid").submit ();
}

is also possible
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn