How do I refresh a DIV content?
PHP Snippet 1:
function updateDiv()
{
$( "#here" ).load(window.location.href + " #here" );
}
PHP Snippet 2:
$("#yourDiv").load(" #yourDiv > *");
PHP Snippet 3:
<script>
$(document).ready(function(){
setInterval(function(){
$("#here").load(window.location.href + " #here" );
}, 3000);
});
</script>
<div id="here">dynamic content ?</div>
PHP Snippet 4:
$('#yourDiv').load('#yourDiv > *')
PHP Snippet 5:
$.get("/YourUrl", {},
function (returnedHtml) {
$("#here").html(returnedHtml);
});