Hi, i have a text field which a user has two type a number plate into. Please can someone show me how to make a button enabled if something is typed in & disable it again if they delete what they typed in?
Note that the [tt]onkeyup[/tt] event will not be triggered if someone fills the [tt]input[/tt] by pasting the text with mouse. So usually the [tt]onchange[/tt] event is used in such case. The price is that the event happens only when the [tt]input[/tt] looses the focus.
But also note that neither the [tt]onchange[/tt] event will be triggered if the [tt]input[/tt] is filled programmatically, for example by the browser's [tt]form[/tt] completing functionality.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.