We help IT Professionals succeed at work.

Is it possible to use DOM architecture to determine values in HTML fields

johnecollins
johnecollins asked
on
Can I use DOM architecture to determine the value of HTML fields?

e.g. document.form.fieldname
Comment
Watch Question

Web Programmer/Technician
Commented:
Yes.
document.formname.fieldname.value

Open in new window


Of course, this requires your form to be named which few people do.
<form name="formname" action="actionurl" method="post">

Open in new window

Author

Commented:
Hi xmediaman,

Sorry it's taken so long to respond to your timely answer, I am afraid that my js studies took a back seat for a while during a crisis, I have got back on track and I now am up to date and learning again thank you very much.

Your answer was concise accurate and of great value.

Cheers

John

Explore More ContentExplore courses, solutions, and other research materials related to this topic.