Https://crunchify.com/how-to-refresh-div-content-without-reloading-page-using-jquery-and-ajax/

hello everybody i want to know how to refresh a div without refresh the all page.

2 Likes

In the link you gave me, this code is resonsible for transition of it.

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

That is just the main part when refreshing not including the rest of the page. Its not doing the whole page its getting written just for that one to be refreshed because there is no other text under that.

I hope this helps =)

2 Likes