title: javascript jquery change src of a script using a script
body: <p>I have a javascript script.  It has a src element to it.  This src is a url, and I would like to change it using javascript, just once to something else, or create it dynamically.</p>
  
  <p>What's the best way to create a script element dynamically using javascript/jquery?</p>
  
  <p>I have:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://www.google.com"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I want to change the url above to a different url using javascript/jquery.</p>