I am trying to add multiple names from the autocomplete drop-down to the input field like in the image below.
Here’s what I want to build:
- When I click on any item from the drop-down, it would add the item
in the input field exactly how it is shown in the image.
- When I hit backspace in the input field, the entire name should be removed at once.
- I can add multiple names and send them to sit in the input field
So basically the name should sit inside that box and that box should sit inside the input field. How do I achieve that in Javascript?
I tried searching the web for this but I am not sure if I am putting the right keyword for it. I don’t know what it is called.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…