1.0.4 • Published 9 years ago

@mogusbi/jquery.resizetextarea v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

jQuery Resize Textarea plugin

Resize a textarea as you type.

Getting started

NPM

Install package with NPM and add it to your dependencies: npm install @mogusbi/jquery.resizetextarea --save

Introducing it to your page

Include jQuery, CopyCSS and the plugin to your page. Select the textareas you wish have resize as you type with the resizeTextarea method.

<!doctype html>
<html>
  <head>
    ...
  </head>
  <body>
    <textarea></textarea>

    <script src="jquery.js"></script>
    <script src="jquery.copycss.js"></script>
    <script src="jquery.resizetextarea.js"></script>
    <script>
      $('textarea').resizeTextarea();
    </script>
  </body>
</html>

It is also recommended to apply these styles to your textarea

textarea {
  overflow: hidden;
  resize: none;
}

License

Copyright © Mo Gusbi. Licensed under the MIT license.

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago