refresh div javascript code example
Example 1: relode div
function updateDiv()
{
$( "#here" ).load(window.location.href + " #here" );
}
Example 2: refresh page on div click
<div id="refresh" onClick="refreshPage()">refresh
<!-- <button type="button" onClick="refreshPage()">Close</button> -->
</div>
<script>
function refreshPage(){
window.location.reload();
}
</script>