на событии изменений HTML не работает

onchange is only triggered when the control is blurred. Try onkeypress instead.
Blue-eyed Bat