[Vuejs]-Is there any way to hide :value from datalist but sent the value by using POST method?

0👍

The datalist HTML element is not the same as select element – see the documentation
The options 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 as value and leave option tags empty (if object_names are unique you can then map them to their object_id)
  • or use something else than datalist

Leave a comment