Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Beginner JavaScript Tutorial - 39 - Accessing Form Elements

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
14,468
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 2, 2011

For all of my videos, go to my website http://thenewboston.com

  • likes, 5 dislikes

Link to this comment:

Share to:

Top Comments

  • Dear youtube,

    This vide has a dislike button. Please fix this as soon as possible. Thanks!

    - A Worried Subscriber 

  • Please use correct xhtml.

    The "name" attribute in form is deprecated in xhtml. Please use id attribute and getElementById.

see all

All Comments (32)

Sign In or Sign Up now to post a comment!
  • @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

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more