how to refresh a div using javascript without refreshing page?

Today, We want to share with you how to refresh a div using javascript without refreshing page.In this post we will show you auto refresh div using javascript, hear for Refresh DIV Contents without Reloading the Entire Page using jQuery we will give you demo and example for implement.In this post, we will learn about
Refresh a HTML div without page load AJAX
with an example.

How to reload a div without reloading the entire page?

jQuery.load() is probably the simply way to load data asynchronously using a data selector, but you can also use any of the jquery ajax some methods (get method, post method, getJSON method, ajax, etc.)

$("#mydiv").load(location.href + " #mydiv");

Refresh a DIV Without Reloading the Page

Example 1: index.html




    Refresh a DIV Without Reloading the Page - www.pakainfo.com
    


    

Will refresh content in 5 seconds

The XML

here simple we will Copy the data and save it in file and name it shops.xml.




  
    1
    Angularjs Master
    Computers
    85260


    2
    Advanced Laravel Materials
    Server Side
    24556

 
    3
    Vuejs 4 Blue Product
    Programming
    48500
 

I hope you get an idea about refresh table content without reloading page using javascript.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Comment