开发者

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜