TutorialLab
Refresh div without reloading page using jquery

Refresh Div without Reloading Page Using Jquery

In this web development tutorial Refresh Div without Reloading Page Using Jquery i had show you how to refresh CSS div contents using jquery that browser refresh doesn’t need.This tutorial contain an example created by me to show you how to refresh div without reloading page using jquery.you can copy the jquery code and practice it by own.

[code lang="js"]

TutorialLab - Refresh Div without Reloading Page Using Jquery

body {text-align:center; background-image: url('https://tutoriallab.net/wp-content/uploads/2015/05/website-logo.png')}

$(document).ready(function() {
auto_refresh();
});
function auto_refresh(){
var randomnumber = Math.floor(Math.random() * 100);
$('#show').text('I am getting refreshed every 3 seconds..! Random Number ==> '+ randomnumber);
}
var refreshId = setInterval(auto_refresh, 1000);
[/code]

Refresh Div without Reloading Page.

Have anything to add to this article? Please get in touch using the comment section below and join the conversion.you can also request to post more advance tutorial using jquery.

hassan

A Freelancer web developer, graphic designer and own this blog to spread knowledge.My hobby is computer problem's solving and i love to help other in this field.

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.