I actually have a problem with including JS file using jQuery. I found many sources but no one work with me. I'm pretty sure that the path of the js file is right. These are my two tries :
The first one (which I prefer) is working with <link> (to include CSS files) but it's not working with <script> tags.
$('head').append('<script type="text/javascript" src="'+addon+'"></script>');
And the second one is by using get HTTP request. And here is my try :
$.getScript(addon, function(){});
So, the question is: what is wrong with the first code? Because I tried it before with <link> tags and its working so good.
<\/script>