How To Put Item Inside The Input Field?
I am creating a tag manager and would like to show my tags inside the input field. I understand that this is not possible by standart and I would like to emulate this by css. Unfo
Solution 1:
A way you can do this is by adding contenteditable property to standard element, like so:
<div contenteditable="true">This is an editable div.</div>
then you can write in this element and put other elements inside also.
Solution 2:
I the below example having input tag with span with some text which is inside input. So like this you can use tag inside input
span{
position:relative;
left:-35px;
background:yellow;
}
<input type="text">
<span>tags</span>
Post a Comment for "How To Put Item Inside The Input Field?"