title: Loading js file into div using jquery
body: <p>I have a js file and execute with :</p>
  
  <pre><code>&lt;div id="result"&gt;
      &lt;script type="text/javascript" src="js/tracking.js"&gt;&lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My main page has 2 divs (2 colums in page) and there are buttons on the left div. When i click to the first button, i would like to execute js file and display on the right. I can easily handle html files by :</p>
  
  <pre><code>$("#result").load( "test.html" );
  </code></pre>
  
  <p>But for js files i think i need to use getscript. I gave a shot with :</p>
  
  <pre><code>$("#result").load("#result",function(){$.getScript("js/tracking.js"); });
  </code></pre>
  
  <p>Ok, it executes the script but not loading into "result" div. It opens a new page and displays the result.</p>
  
  <p>How should i modify?</p>