Showing posts with label reference js file. Show all posts
Showing posts with label reference js file. Show all posts

Friday, October 18, 2019

Including js file

We can uses jQuery to import, include or require a js file within another js as shown below.


$.getScript("filename.js", function(){

   alert("filename.js loaded.");

});

Cheers,
Samitha