How it Works: Making Use of More Controls
Explore how to enhance HTML web forms by using datalist elements to provide suggestions in textboxes. Understand how values are assigned and filtered, and learn best practices for organizing forms. This lesson helps you make forms more interactive and flexible for users.
We'll cover the following...
We'll cover the following...
How it works
In the first step, you added the <datalist> element to the form definition. It uses a number of <option> tags to define suggestions that can be offered by textboxes. The value attribute of each option defined the text that was to be posted to the backend. The first and the second <option> items define text values that can be used by the ...