+ 4
How can I reload only one div of a webpage on click in HTML?
I didn't linked a code as I don't have any idea on how to reload just a part of the webpage. Please help me to do it. Hope you will help !
5 odpowiedzi
+ 3
Code Infinite with Arnav
Do you want to refresh a particular div?
if so then you can do this:
$("#" + divId).load(location.href + " #" + divId + ">*", "");
+ 6
Use
var div = document.querySelector("div");
div.innerText = value;
to update the inner text of the first div
https://code.sololearn.com/WPkU2vMbU9GB/?ref=app
+ 4
Also elm can do it.
+ 2
It's not as that as I want.
It's just incrementing it's value simply, I want to reload the div.
But I think it's possible in react or Angular.
+ 2
Yes use react or angular good luck