Look up form elements JavaScript and PHP Forms


show more Looking up form elements provides you with in-depth training on Developer. Taught by Ray Villalobos as part of the Validating and Processing Forms with JavaScript and PHP show less
please wait ...

Looking up form elements

Once you know how to gain access to a form field like an input field, checkbox, or a drop-down, we can access any of the attributes within that field via the elements array. In the last movie, we learned that we can get to a form field in one of two ways. Using the ID of the field and get elements by ID, or using the name of the field and the document forms array. Once we're there, we can retrieve any sets of attributes using dot notation. Now it's important to realize that different field types have different attributes. We need to know how to get to the different things in our forms.

I'm going to be working on this form, which is a form that I created in my course CSS styling forms. I show you how to put it together on chapter six. So I'm going to rightclick in the background and select Inspect Element. I'm using the Google Chrome browser, and I'm going to hit the Console tab on the right hand side. And once here, I'm going to try to acces the...

Looking up form elements
Video duration: 3m 35s 2h 51m Intermediate

Viewers:

Looking up form elements provides you with in-depth training on Developer. Taught by Ray Villalobos as part of the Validating and Processing Forms with JavaScript and PHP

Subjects:
Developer Web
Software:
JavaScript PHP
Author:
please wait ...