I was just wondering how do you dynamically resize an input as you type in it??
I'd like to use jQuery if possible & I would rather it be a small script than a bulky plugin.
Please let me know, Matt Mueller
Here's a quick (untested) solution
$('input[type="text"]').keyup(function(){
$(this).attr({width: 'auto', size: $(this).val().length});
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With