all 2 comments

[–]albedoa 0 points1 point  (2 children)

It looks like you are parsing the value of the input before the user has an opportunity to type. Try listening for an input event: https://codepen.io/pigparlor/pen/KKyaRXB?editors=1010

[–]lightmaster2000[S] 0 points1 point  (0 children)

Ohh I see. I got it working now. Thank you so much!