Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 7, 2025. It is now read-only.
/ autosize Public archive

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.

License

Notifications You must be signed in to change notification settings

jackmoore/autosize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

238 Commits

Repository files navigation

Summary

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.

Demo

Full documentation and a demo can be found at jacklmoore.com/autosize

Install via NPM

npm install autosize

Usage

The autosize function accepts a single textarea element, or an array or array-like object (such as a NodeList or jQuery collection) of textarea elements.

// from a NodeList
autosize(document.querySelectorAll('textarea'));
// from a single Node
autosize(document.querySelector('textarea'));
// from a jQuery collection
autosize($('textarea'));

Released under the MIT License

About

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 29

AltStyle によって変換されたページ (->オリジナル) /