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

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

e.g. document.form.fieldname
johnecollinsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Kim WalkerConnect With a Mentor Web Programmer/TechnicianCommented:
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

0
 
johnecollinsAuthor 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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.