I'm trying to do a reload just for content from within a div.
<div class="panel-body">
<pre>
<p id="content" th:utext="${log.content}">Log content</p>
</pre>
</div>
I was able to make the whole page update itself:
$(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 question: How do I make a realod only on the contents of this <div></div>
, from an ID?