Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q357 How do I access a form field which has a non alphanumeric name?

You are here: irt.org | FAQ | JavaScript | Form | Q357 [ previous next ]

Rather than attempt to access the value of a form field called 'a.b.c.d' using:

document.formName.a.b.c.d.value = 'testing';

use:

document.formName.elements['a.b.c.d'].value = 'testing';

©2018 Martin Webb