$( "#reload" ).load(window.location.href + " #reload" );
For my simple webpages, I was using this option for reloading a div that has an ID.
Now I'm working on a project, where the DIV repeats itself, many times as the number of rows of the table. I want to update a specific row of the table, and I would like to reload/refresh only that specific DIV, not all the page. Doing this it is easy for DIVs where is possible to select them with IDs, but if the DIV repeats itself, I have to select it like this:
e.target.closest(".parentClassName").querySelector(".childClassName");
Do you know a method for refreshing/reloading a DIV, selecting it as I have selected above?