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.
What's the best way to create a script element dynamically using javascript/jquery?
I have:
<script type="text/javascript" src="http://www.google.com"></script>
I want to change the url above to a different url using javascript/jquery.