Hello I am trying to auto refresh this div tag. It contains an iframe that links to an outside url for a widget. I would like it to refresh every 30 seconds. Just curious how this can be done.
<div id="my-content">
<iframe src="https://discordapp.com/widget?id=*****************&theme=dark" width="350" height="500" allowtransparency="true" frameborder="0"></iframe></div>
</div>
<script>
$(document).ready( function() {
$('div.index-right').eq(0).append($('div#my-content'));
});
</script>
I am getting an uncaught exception error commented about below. This is for an external site that is linked in the iframe and there is no data being written locally to pull to update. The div simply needs to be refreshed.