V
V
Vladislav Tseplyaev2020-02-21 12:01:56
HTML
Vladislav Tseplyaev, 2020-02-21 12:01:56

How is a list of possible values ​​different from a drop-down list?

I would like to know how these two lists differ from each other and when, under what conditions, each of them should be used. Visually, they are similar, but differ in code. I'm talking about datalist and select

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-02-21
@Frint

The tag allows you to create an interface element in the form of a drop-down list, as well as a list with one or multiple selection<select>

Tag Creates a list of choices that can be selected when typing in a text field.<datalist>

In other words , this is an interface element that uses a data set. It only describes a set of data that can be used in one or more other interface elements <select>
<datalist>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question