no evento de mudança HTML não está funcionando

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