How do I get OnSubmit to grab an external file?
I have this
onsubmi开发者_高级运维t="return validatePP(this);
I moved all of the validate function to an external file. How do I get it to call the external file?
You'll need to include it into your HTML file: <script language="Javascript" src="[path]"></script>"
.
You'll also want to make sure that the script file is loaded prior to using the function (if you're loading synchronously, include the script tag before the script block that you call the validate function in).
精彩评论