How can I stop user from adding number greater than max value and smaller then min value in html input(type = number)
<input id=ageRange type=number min=20 max= 50 maxlength=2></input>
I tried one javascript code, but it makes change after we add the value then it changes the value. Is there any way that I can stop user to put value in range or just there is no flickering in the input cell while we change value programatically?