07/03/2018 2:46 WIB | JS
Reload Page Content Using Jquery

This snippet to reload a page content, using Jquery within interval time (in second). This is suitable to be applied on realtime data display.

<!DOCTYPE html>
<title>Reload Content</title>

<script src="http://code.jquery.com/jquery-latest.js"></script>

$(document).ready(function () {
    setInterval(function() {
        $.get("file-to-be-reloaded.php", function (result) {
    }, 1000);


    <div id = "reload"></div>



  1. 1000 mean 1 second.
  2. As mentioned on this official jquery, is advised to download jsquery-latest.js rather then on CDN

Other Topics