Assist text input with a datalist JavaScript and PHP Forms JavaScript Forms


show more Assisting text input with a datalist 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 ...

Assisting text input with a datalist

Anything you can do to help your users fill out accurate forms is a good thing. Sometimes we ask users for generic input fields with a text field, and we get a lot of variations in the responses we get back. Say, for example, that we're asking users to fill out a county. If I ask for the information in a generic text field, I may get different variations on the different counties. For example, they might type something like Orange, some people will type it upper case. Some people will type in lower case, and some people might even misspell it.

Now, I don't want to use a select field here because although you're in a certain geographic area, some people might come from all over the state. By using a data list, you can provide suggestions to your users. The way you do it is by using a list attribute in your input field. Then you create a data list with predetermined responses. When the users click on the field, they will see the data list and pick from one of the...

Assisting text input with a datalist
Video duration: 1m 55s 2h 51m Intermediate

Viewers:

Assisting text input with a datalist 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 ...