stefmikhail
stefmikhail

Reputation: 7125

Auto Resize Text to Fit Form Input with jQuery

I'm looking for a method, using jQuery, to change the font size in a form input field so that no matter how much the user types, it is always visible and fits. In other words, to start with a font size of 13px and when the text reaches the width of the input field, the font size progressively gets smaller to accommodate.

I've found many methods of resizing the field itself, but not the text. Hopefully one of you who know jQuery better than I can help out.

Thanks!

Upvotes: 3

Views: 5568

Answers (1)

Related Questions