0

My input box is set as autocomplete. The list items are chemistry formulas with subscripts. I can only show the formulas on the dropdown selections. I want to show the formula format in the input box. Dropdown List with subscripted items

I want like as following. Expected format in the input box

Is there anyone who has experienced this? or anyone who can resolve this?

glpusna
  • 1
  • 1
  • Normal input elements are not capable of displaying them in the way you want, but it is be possible with a [contenteditable element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/contentEditable) and some javascript. – Christopher Sep 08 '22 at 04:18
  • If it's just numbers, you can use unicode. – Samuel Liew Sep 08 '22 at 04:38

0 Answers0