Auto Refresh Div periodically without refreshing the whole page

In this video I have shown how you can refresh a div automatically in a preset interval without refreshing the complete page.
The example is demonstrated in PHP, HTML and jquery.

The jquery function will load the load.php in every 1 second interval. You have to add the js library to the head tag as shown in the page.

The load.php just loads the current time and shows it in index.php as it loads.
You can call database functions also from this page so that it will show data from database periodically.

The index.php after running in server is shown below.

1,473 views