<datalist> Native Autocomplete Playground

Pak RT’s 17 August sign-up form with a <datalist>: the browser answers which list input.list found, what becomes of an off-list value, and what Kirim checks…

Why it matters

Suggesting cities, tags, products, email domains: everyday form needs. <datalist> solves the simple cases for free: keyboard, screen reader (role=combobox) and filtering are the browser’s job. Many dirty-data bugs come from assuming "the value is surely one of the options".

The key idea

A datalist is a suggestion, not an allow list

Common mistakes

Try it in this playground