Currently, I am working on developing a code snippet to retrieve and showcase stock data for my Smart Mirror Project. Although the script successfully displays all of the necessary information, I am encountering difficulties when attempting to update the stock data. Ideally, I would like the data to refresh every 5 seconds without repeating the same stocks endlessly down the page.
Is there a way to reload the data exclusively, avoiding a full page refresh? Moreover, how can I verify that this feature is functioning correctly? Additionally, could I incorporate a CSS element that highlights price changes by flashing them in yellow?
If you wish to inspect my code, it is available on Fiddle: https://fiddle.jshell.net/Aurum115/2kbpt91z/17/
Edit: To elaborate on the second inquiry, I aim to save the previous price, compare it with the current value, and momentarily flash the text in yellow if alterations are detected.