Can't get value from my span element
You aren't retrieving the value from the span any further. Once it's in timeleft
, you are modifying timeleft
, not the value of the span.
You aren't retrieving the value from the span any further. Once it's in timeleft
, you are modifying timeleft
, not the value of the span.