Additional modification to datalist feature enable it to show all the options even when a default value is entered in the input field input list values id other value 22 autocomplete off datalist id values option value 10 option value 20 option value 30 option value 40 option value 60 option value 90 datalist script document body style height 200pt function datalistAlwaysShow inputid let other document getElementById inputid other onclick function e if this value this placeholder this value this value other onmouseleave function e if this value this value this placeholder end datalistAlwaysShow datalistAlwaysShow other console log ready script
unction datalistAlwaysShow inputid let other document getElementById inputid other onclick function e if this value this placeholder this value this value other onmouseleave function e if this value this value this placeholder end datalistAlwaysShow datalistAlwaysShow other console log ready script