What does that mean? Also ids on elements should be unique, so setting multiple p elements to "timer" is a bad idea. Use a class if it should be on multiple
@qqqq What is a timer? A countdown? Or the current time? Do you expect it to increse every second? These are just a few of the questions you should at least provide.
@qqqq Ok if that the amount of effort you want to put into explaining what you are trying to do, I will put the same amount of effort into giving an answer
Use a setInterval() to decrement it every second. Give javascript seconds, to make it easy to calculate and display.,
@qqqq Then show the code. That code you have shown does not seem correct. There is no setInterval and is it just for one product? If so, why do you have a foreach?
@qqqq Really? The point is that you are asking someone to write the final code for you instead of taking the time to actually learn yourself. I mean instead of writing "how?", would it maybe be smarter to try googling "how to get data from the dom using javascript" or similar.
Or give that AI chat a shot. It will ACTUALLY write the code for you, free of charge