I need to change the value of the src in the tag :
<script type='text/javascript' src='gray.js'></script>
For this I’m using a combobox:
<select id="chartTheme">
<option value="dark-blue">Dark Blue</option>
<option value="gray">Gray</option>
</select>
How to make it use a Jquery function when I select and click in a refresh button?
Source to refresh button:
<input type="image" name="commit" src="../icons/refresh.png" onClick="javascript:updateGraph()"></input>
You could use
$.getScript()for this purpose. It loads a new script into the page and runs the code inside.