I have a view in my components folder which calculates the progress in percentage and updates this on the front end. The view is being called in another view under auth/layouts. The progress gets updated on successful on page reload but I do not want to use location.reload(), I would like to update just the percentage and the div, not the entire page. Ive tried getting the script by id but this does not work. Please assist me with this.
When the refresh button is clicked, I would like to refresh a div and the progress here:
$("#btn-refresh-address").click(function() {
$("#div").load(location.href + " #div");
});