title: HTML Dataset passing a value through option
body: <p>I'm using the HTML attribute dataset with a select list.</p>
  
  <pre><code>&lt;input type="text" name="productcode[]" id="productcode" class="productcode" list="products"&gt;
  &lt;datalist id="products"&gt;
      &lt;?php
  
       $query=mysql_query(" 
       SELECT * FROM dbProducts ORDER BY product_name"); 
       while($entry=mysql_fetch_array($query)) 
              {
                echo '&lt;option value="' . $entry['product_code']'"&gt;' . $entry['product_name'] . '&lt;/option&gt;';  
              } ?&gt;
  &lt;/datalist&gt;
  </code></pre>
  
  <p>As you can see the option value is different to the displayed text. If I was using <code>&lt;select&gt;</code> I could pass the value into a form whilst only showing the text I want. Is there a way of doing this with <code>&lt;datalist&gt;</code>? At the moment my form returns the input type with the product_code and product_name values.</p>