Is there a way to reload only a part of a webpage, e.g. a div
element without using AJAX or JQuery? I tried document.getElementById("mydiv").reload();
but it obviously doesn't work.
Please, do not write JQuery or AJAX, only pure JavaScript!
Is there a way to reload only a part of a webpage, e.g. a div
element without using AJAX or JQuery? I tried document.getElementById("mydiv").reload();
but it obviously doesn't work.
Please, do not write JQuery or AJAX, only pure JavaScript!
If you are client-side only and you want to use JavaScript to update a div
then replacing the inner html of the div
might just do the trick.
Something like :
document.getElementById("content").innerHTML = "whatever";
Or if you prefer to use jquery :
$('#content').html('whatever')