Beginner JavaScript Tutorial - 39 - Accessing Form Elements
Top Comments
All Comments (32)
-
@1cX I'm sorry , I made a couple mistakes in my reply to you, lol. I meant "instead of [0] & [0]??" And 2nd mistake, "document.form["buckysform].el
ements["username"]??" -
@1cX I wondered about this. And, in this vid, couldn't he have used the name of the form & the name of the first name field, instead of [0] & [1]?? In other words, instead of var x=document.forms[0].elements[0
] couldn't it be var x = document.form["myform'].elemen t["username']?? Assuming we're doing things the old way (not using an id & getelementbyid). -
I keep getting [object HTMLInputElement]
-
@Simonmodule By my comment, I meant, THERE WILL BE NO MORE FUCKING JAVA FUCKING SCRIPT VIDEOS!
-
@MrBikerking200 WHAT? muthafucka
-
Dam taking hits while a tutorial
-
@1cX yea i did some research on that you could also do document.getElementByname or getElementByclass
Dear youtube,
This vide has a dislike button. Please fix this as soon as possible. Thanks!
- A Worried Subscriber
Dak552 10 months ago 74
Please use correct xhtml.
The "name" attribute in form is deprecated in xhtml. Please use id attribute and getElementById.
1cX 10 months ago 23