I am programming a web page and I have an input where the user must enter a 5-letter word and a button that will use said word for a function, I want the button to be disabled as long as 5 letters have not been entered but I don't know how to do it exactly, so I was thinking that if I could get the value of the input in real time I could try something.
I haven't tried anything yet because I don't know where to start. I know how to disable a button, I just don't know how to get the input value in real time.