0
I’m trying to do a Reload just for the contents of a div.
<div class="panel-body">
<pre>
<p id="content" th:utext="${log.content}">Log content</p>
</pre>
</div>
I managed to get the whole page up to date:
$(document).ready(function() { setInterval("location.reload(true)", 10000); });
But applying the same logic to an ID did not work very well:
$(document).ready(function() { setInterval("$('#content').reload(true)", 10000); });
My doubt: How do I give a realod only in the content of this <div></div>
, from an ID?
Man if I’m not mistaken Reload by default reloads the current url or whole document.
– LeAndrade