how to get input live and change value of var?

i'm trying to do simple multiply where i just get value from input and put it as text below but i can't seem it get that to work live like when they change the numbers the text would change too
7 Replies
ABK | Muneer
ABK | Muneer2y ago
ABK | Muneer
ABK | Muneer2y ago
this is what i want to happen
ABK | Muneer
ABK | Muneer2y ago
if i set the value on the input everything works fine but it wouldn't update automatically
MarkBoots
MarkBoots2y ago
you'll need an eventlistener that runs your function when ever a change is detected on the inut field
ABK | Muneer
ABK | Muneer2y ago
i'll reserch that thank you ! i was stuck since i haven't learned or seen even listener before
MarkBoots
MarkBoots2y ago
here a really quick and simple example. everytime a key is pressed, it will update or when arrow keys are used https://codepen.io/MarkBoots/pen/xxjeQvO?editors=1111
ABK | Muneer
ABK | Muneer2y ago
i did it by myself thank you lot! i have to research and do it myself otherwise i'd just ask every error i get lol