[Javascript] form field maxlength

Paul McGuire pmcguire at cguk.co.uk
Tue Mar 2 04:37:13 CST 2004


I have a form called MyForm

a textbox called MyTextBox

it has a MaxLength of 20

How do I access the MaxLength attribute of this form via JavaScript
programatically?

I imagine it will be something like

document.MyForm.MyTextBox.maxlength.value

but that does not work





More information about the Javascript mailing list