Co-Founder & General Partner @ SNØCAP
azoff / autoresize Goto Github PK
View Code? Open in Web Editor NEWA jQuery plug-in that automatically resizes textareas on input
Home Page: http://azoffdesign.com/autoresize
A jQuery plug-in that automatically resizes textareas on input
Home Page: http://azoffdesign.com/autoresize
Co-Founder & General Partner @ SNØCAP
Hello,
I just found your AutoResize script which is the bestest and simplest from all. Keep up the good work.
I found something that is a bit weird, when I enter like two pages of text and you let say type another word at the end the browser windows jumps up to the top and back down. Is there something that I'm doing wrong? I tried it directly on your demo.html
Cheers
Claudiu
I have approximately five textareas on the page that are all updated dynamically with varying content. I see you have a change event built into the plugin, but the textareas aren't resizing when I update their text using the following code: $('#description').val(contentVariable)
Am I doing something wrong?
I appreciate any help I can get.
I'm trying the code on both FireFox and IE.
Works on Firefox but on IE the height of the textarea is wrong.
I still try if I find something in the code and tell you if I find the reason for this behavior.
thanks for your work
Try to perform
$("#textarea").css({padding:"20px"}).autoResize();
and you'll be surprised... (Autogrow doesn't consider the padding are in the autogrow calculation)
How to get the textarea to 1 row? Ideally it would be nice to have the option if it were one row and when active, a little extra space would appear so the user knows they have the extra space to keep typing if need.
The script doesn't work in jQuery 1.9+ due to $.browser being removed.
The change
event is fired when the textarea loses focus.
The paste
event is fired before the contents of the clipboard are pasted into the document.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.