I have a site which displays real-time data that updates every 3 seconds. What I'd like to do is if a JSON value goes below a certain number, that I display a DIV at the top of the screen with a specific class included on it (turning background a specific color and font different color). THen when the number gets higher than the set value, the DIV would be hidden, the page would jump back up into position and it would be like the DIV was never there.
In my css I had made 2 classes.. one with BG color, and display:block, and the other with an all white BG color, and display:hidden.
I then tried to use the .addClass feature but it doesn't appear to be updating.
Can someone write up a quick example that I can follow?