I have an <input type="text" />
tag.
There may be too much content in it, and when the content length goes exceed the input width, it will be scrolling horizontally.
In fact, I want to control the width of tag, to make it varying according to the content.
So, is there any way to get the content width of the tag? Similar to the scrollHeight
attribute?