In article <l7_Lb.15949$Rc4.64217@attbi_s54>, "Piotr Nowak"
<pi*****@pocztal.com> writes:
Perhaps:
nope... it does not work the way it should...
if i set it to 10 characters, person has to enter 10 chars, the form is
being submitted, but only 9 characters are submitted. It cuts the last
character.
any ideas?
us the onkeyup or onchange of the field instead of the onkeypress. onkeypress
fires as soon as the key is pressed, not after its released. And it may be a
timing issue where the key is pressed, and before its released the form is
submitted.
Personally, I would use the onchange event and when the field gets changed, and
exited, the form would submit.
--
Randy