datalist!() { /* proc-macro */ }
Expand description
<datalist>
element.
The <datalist>
HTML element contains a set of option
elements that represent the permissible or recommended options available to choose from within other controls.
To bind the <datalist>
element to the control, we give it a unique identifier in the id
attribute, and then add the list
attribute to the input
element with the same identifier as value.
Only certain types of input
support this behavior, and it can also vary from browser to browser.
Note: The
<option>
element can store a value as internal content and in thevalue
andlabel
attributes. Which one will be visible in the drop-down menu depends on the browser, but when clicked, content entered into control field will always come from thevalue
attribute.