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
this is what i want to happen
if i set the value on the input everything works fine but it wouldn't update automatically
you'll need an eventlistener that runs your function when ever a change is detected on the inut field
i'll reserch that thank you !
i was stuck since i haven't learned or seen even listener before
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
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