[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 147
  • Last Modified:

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
0
johnecollins
Asked:
johnecollins
1 Solution
 
Kim WalkerWeb 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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now