javascript to update a div code example
Example 1: how to change text of div in javascript
document.getElementById("content").innerHTML = "whatever";
Example 2: relode div
function updateDiv()
{
$( "#here" ).load(window.location.href + " #here" );
}