I'm relatively new to using javascript, so I'm not sure if this is a
known problem, or something that I'm doing wrong. (99.9% sure it's
something I'm doing wrong.) Here's the situation:
I have a form that I am processing. Whenever the user types into any
box, the "clear" button becomes activated. Otherwise, it is inactive.
(Enabled/Disabled) My problem is that my button seems to be one stroke
behind. So if I have a box and type in 'a', then nothing happens.
However, if I type in another 'a', then the box enables as expected.
Same thing goes for backspace...whe n I clear out the box, the button is
still enabled. If I backspace one more time, then it disables.
Anyone able to point me in the right direction?
Thanks!
known problem, or something that I'm doing wrong. (99.9% sure it's
something I'm doing wrong.) Here's the situation:
I have a form that I am processing. Whenever the user types into any
box, the "clear" button becomes activated. Otherwise, it is inactive.
(Enabled/Disabled) My problem is that my button seems to be one stroke
behind. So if I have a box and type in 'a', then nothing happens.
However, if I type in another 'a', then the box enables as expected.
Same thing goes for backspace...whe n I clear out the box, the button is
still enabled. If I backspace one more time, then it disables.
Anyone able to point me in the right direction?
Thanks!
Comment