Import Javascript-File - how to use the code?
Posted: 19 Sep 2018
Hello,
i want to use an central JavaScript-File for different forms.
I add an html-control to the form with this code:
the code from "javaScript.js" is
If i run the Form the first line works well and the second not. If i set the same code into the JavaScript-Editor SP-Forms both lines works well. How can i speak to my controls, with an extern Javascript?
thanks in advanced.
i want to use an central JavaScript-File for different forms.
I add an html-control to the form with this code:
Code: Select all
<script language="javascript" type="text/javascript" src="../javascript.js"></script>
Code: Select all
alert("hello world");
$('#fd_form').append('it work's!!');
thanks in advanced.