jquery - switch javascript file in head
<p>I'm learning jquery and I have a method that I want to implement. I want to test out switch between multiple JS files on one HTML page. So, I want to be able to click a link on the HTML page which will then load another JS script. I've done this so far:</p>

<pre><code>$("#jswitch-1").click(function() {
$('head').append('&lt;script src="js/my-jquery-1.js" type="text/javascript"&gt;&lt;/script&gt;');});
</code></pre>

<p>jswitch-1 is the id of an HTML link. This method works but I can't see it added to the source code when I view source. Will I also need to remove the current JS file with this function and then load the next one? Or is there another more efficient way of doing this?</p>
