1 00:00:00,540 --> 00:00:07,320 As with CSX in JavaScript J query functions can be placed in an external JavaScript file and loaded 2 00:00:07,410 --> 00:00:10,560 in your existing document to do so. 3 00:00:10,700 --> 00:00:14,460 Create a new file for the purpose of this exercise. 4 00:00:14,600 --> 00:00:18,510 We'll save this file is JQ functions dot J.S. 5 00:00:34,230 --> 00:00:35,320 with your file saved. 6 00:00:35,370 --> 00:00:43,350 Enter your functions into the file and save the changes so go ahead and cut this function out 7 00:00:47,150 --> 00:00:54,290 and pasted into this into the JQ functions file and save the changes 8 00:00:58,830 --> 00:01:01,440 now in our main H team document. 9 00:01:01,800 --> 00:01:04,550 We simply need to call the script. 10 00:01:04,560 --> 00:01:09,350 We just created to do that you can type the following line of code 11 00:01:21,430 --> 00:01:22,000 and that's it. 12 00:01:22,000 --> 00:01:28,150 Now we can go ahead and save this save our main document and preview in our web browser just to make 13 00:01:28,150 --> 00:01:29,770 sure the function still work correctly. 14 00:01:36,090 --> 00:01:39,810 And it seems that everything is working so we know that the file was properly called.