I have this code from this question How To Create Multiple CountDown Timers In The Same Page Using Javascript?. I am not a JavaScript expert so if someone can help me to rewrite this code by using class instead of ID so that I can use multiple class. This is the code Answer I changed your code slightly. Try this:
Tag: countdowntimer
How to make Javascript countdown for 24 hours and fade out a div element after 24 Hours?
Here, I’ve made a timer which says how much time is left for 24 Hours. But it’s showing Hours, Minutes and seconds in negative value for seconds after a minute and negative value for minutes after an Hour. I need the both div elements (“offer1” and “remainingTime”) should fade out after 24 hours timer. By using the current Date and