Answers for "ajax to refresh part of page"

1

relode div

function updateDiv()
{ 
    $( "#here" ).load(window.location.href + " #here" );
}
Posted by: Guest on April-22-2020
1

jquery ajax refresh

function loadlink(){
    $('#links').load('test.php',function () {
         $(this).unwrap();
    });
}

loadlink(); // This will run on page load
setInterval(function(){
    loadlink() // this will run after every 5 seconds
}, 5000);
Posted by: Guest on December-04-2020

Code answers related to "ajax to refresh part of page"

Browse Popular Code Answers by Language