How To Show Datalist With Javascript?
Solution 2:
Datalist is not supported by all browsers and it is not handled the same way. I recommend you switch to something such as flexselect: https://rmm5t.github.io/jquery-flexselect/
This might not give you the answer you wanted, but there's no solution that will work for datalist (on all browsers). You can hack your way around and make it work on Chrome or Firefox, but even that will be hard to do because Google and Mozilla have completely restricted the usage of untrusted events/triggers . Read about this here: https://www.chromestatus.com/features/5718803933560832https://www.chromestatus.com/features/6461137440735232
Also initMouseEvent is deprecated, so are all other low-level methods that would have allowed you to create this behaviour in the past.
Post a Comment for "How To Show Datalist With Javascript?"