Tuesday, 22 July 2014

Load javascript file dynamically using jquery with callback

Que: How to load javascript file dynamically using jquery?

Ans: jQuery.getScript("/xyz/abc/your.js", function(){
initialize(); // this function will call after loading of your.js
});

No comments:

Post a Comment