How to get the value from a js function in another page in laravel 8


This Content is from Stack Overflow. Question asked by Jeliane101

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.


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?