Reloading a div without calling an external page
I have a dashboard set up to automatically refresh the page and data. I want to move away from that and only refresh divs. The only issue is that the data i am calling is from the back end and not a separate file. I have the following code:
var auto_refresh = setInterval(
Obviously the data is not refreshing, it's more or less of an effect. Is there a way to just refresh single php data? Thanks for any help.
<a href="#">Year to Date Sales<span id="test_refresh"> $<?=$this->YTDsales?></span></a>