As with CSX in JavaScript J query functions can be placed in an external JavaScript file and loaded
in your existing document to do so.
Create a new file for the purpose of this exercise.
We'll save this file is JQ functions dot J.S.
with your file saved.
Enter your functions into the file and save the changes so go ahead and cut this function out
and pasted into this into the JQ functions file and save the changes
now in our main H team document.
We simply need to call the script.
We just created to do that you can type the following line of code
and that's it.
Now we can go ahead and save this save our main document and preview in our web browser just to make
sure the function still work correctly.
And it seems that everything is working so we know that the file was properly called.