I have the following:
<div id="some-id"></div><script src="/script.js" type="text/javascript">
I’m trying to basically use the some-id to grab the script and reload it ? How would I do this via ajax ?
i.e. like
var scriptLoad = jQuery('#some-id').next().attr('src');
Then reload the src
Get the next sibling, load the source path, append a querystring to clear any cache. (changing the src causes the script to reload)