How to create autofill/autocomplete of input form field with specific options without datalist

Highlighted
Explorer
96 0 4

Hello,

iOS and desktop Safari don't support datalist. Is there a workaround to have a form field that provides a value from a list as the customer types a similar word? Searching autofill and autocomplete don't help because these are values that are not preselected by me. I'm looking for something where I can preselect the options that are filled in as customers type.

 

Thank you

0 Likes
Highlighted
Explorer
96 0 4

For anyone interested, I got this working...although the styling is not right, by following adding the min.js and style.css:

https://github.com/Fyrd/purejs-datalist-polyfill

When I use <datalist> this is set above the input field </datalist> and looks awful. If anyone knows how to fix this please let me know.

0 Likes