I'm using a datalist to create a list for a user to select a customer. When viewing the datalist in Chrome, the customer ID is visible along with the customer name. Ideally, the user should only be able to see the customer name, not the ID.
<input list="s" name="s">
<datalist id="s">
<option value="customer.id">customer.name</option>
In Chrome, the above method displays both the ID and the Name. How do I hide the value attribute from the user so they can only see the name? This happens by default in Firefox so my guess is this is a polyfill issue, but I have not been able to find a solution. Both customer.id and customer.name are being pulled in from the client's server, so sadly data-value would not be a suitable solution in this case.