<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#000000 size=2>Dear all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Suppose I have the following code snippet</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><input name="pref" list="fruits"><BR><datalist id="fruits"><BR> <option label="apple" value="1"><BR> <option label="pear" value="2"><BR> <option label="banana" value="3"><BR></datalist><BR></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>Purpose is to enable the user to either type a new fruit name or select an existing fruit number. Actually I want the list [apple,pear,banana] as suggestion list, but as I understand correctly, the suggestion in this case would be [1,2,3], the label elements are just annotations to these values. </FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>Is there any (proposed) solution to let the user work with the fruit names, so names are given as suggestions and a different name might be typed in, but submit the selected fruit number if one was picked from the list?</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>regards,</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>Rikkert Koppes</FONT></DIV></FONT></BODY></HTML>