I feel like this should be easy. I've been searching around / trying things out for at least a week, and still to no avail.
I'd like an <input>
element with placeholder text. I'd like the element to only be as wide as the placeholder text. When you click into the <input>
, I'd like the width to remain the same. As you type, if your input text exceeds the width of the original placeholder text (and therefore the <input>
element itself), I'd like the <input>
to expand to accommodate the text.
Thoughts, SO?