R
Randell_D
Folks,
I have one form with one input box - The length of the input box needs
to be dynamic depending on the users menu option - thus, if they
wanted to add a new currency that my application would support I would
expect them to be fixed with a maximum of 3characters... if they were
to enter a department name, I would want to give them a maximum input
box length of 25characters...
I have created a script that has an onclick/onchange event examining
the length of the input box but this is not preferable - I find
sometimes the third character is included and sometimes its excluded
when I use this method... I'd prefer instead to be able to assign the
fixed length of input box.
can I not do something like
document.forms["form1"].myBox.maxlength=3;
Thanks!
I have one form with one input box - The length of the input box needs
to be dynamic depending on the users menu option - thus, if they
wanted to add a new currency that my application would support I would
expect them to be fixed with a maximum of 3characters... if they were
to enter a department name, I would want to give them a maximum input
box length of 25characters...
I have created a script that has an onclick/onchange event examining
the length of the input box but this is not preferable - I find
sometimes the third character is included and sometimes its excluded
when I use this method... I'd prefer instead to be able to assign the
fixed length of input box.
can I not do something like
document.forms["form1"].myBox.maxlength=3;
Thanks!