Sunday, 15 September 2013

fake input text javascript

fake input text javascript

i have 2 input like this
<input type="password" maxlength="4" id="fakepassword" />
<input type="hidden" maxlength="8" id="password" />
how to insert value to password when type and focus on fakepassword, i try
to get value from fakepassword with OnkeyUp event but stuck in maxlength,
is there a way to get value from keyboard press?
my real problem is, i have login form and i want my password field just
showing 4 character lengt no matter how much i put character into it
please help and sorry for my terrible english

No comments:

Post a Comment