Is it possible to get width of text inside a textarea element?
I don't want $('textarea').val().length per se, as it doesn't depend on font-size.
I would prefer the absolute width of the text inside.
It's well possible this information is impossible to get hold of.
Workaround idea:
span element with the font size settings of the textarea.text(value)span I guess a pre element is better, it would jump lines with \n and wouldn't need a <br>.display: none so it doesn't show. (The dimensions should be calculated then.)visibility:hidden works better than display:none because then it still takes up space. It's good to then use absolute positioning so it doesn't move things around on the page. I followed the CSS in stackoverflow.com/questions/118241/…