Open main menu
Changes
Building Forms with JavaScript
144 bytes added
,
19:06, 15 May 2007
→
Accessing Objects in a Form
<pre>
document.myForm.elements[0]
;
</pre>
We can then extend this to get the current value entered into the text object:
<pre>
textValue = document.myForm.elements[0].value;
</pre>
← Older edit
Newer edit →
Neil
Bureaucrat
,
administrator
34,333
edits