0👍
The datalist
HTML element is not the same as select
element – see the documentation
The option
s inside a datalist
always show their value
attribute in bold on the first line – and if there is some content inside the option
tag it is shown in lighter font on the second line. You can not change this behavior – so you can either
- use the
object_name
asvalue
and leaveoption
tags empty (ifobject_name
s are unique you can then map them to theirobject_id
) - or use something else than
datalist
Source:stackexchange.com