use jQuery for js file to create library
Summary
use jQuery for js file to create libraryContent
Hi All,
I need to create one java script function, but for that has dependency on jQuery.
in html file we can write script tag to add it.
But i this case as I have import only in js file, I have used below code which is not working.
var script = document.createElement('script');
script.src = '//code.jquery.com/jquery-2.0.0.min.js';
document.getElementsByTagName('head')[0].appendChild(script);
Please provide inputs if somebody has already tried it.
Thanks,
Abhi
Tagged:
1