Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to auto refresh a div js

// Requires jQuery
<script src="http://code.jquery.com/jquery-3.1.1.js"></script>
<script type="text/javascript">
    function doRefresh() {
    $("#show").load("#show");
    document.getElementById("refresh").innerHTML = Math.random();
}
$(function () {
    setInterval(doRefresh, 5000);
});
 
PREVIOUS NEXT
Tagged: #auto #refresh #div #js
ADD COMMENT
Topic
Name
3+8 =