Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

mathaywarduk/jquery.expand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js.expand

jQuery based snippet which causes HTML <textarea> elements to expand vertically on focus.

Usage

Include jQuery and Expand in HTML

    <script type="text/javascript" src="lib/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="expand.min.js"></script>

Add data-attributes to <textarea> elements where necessary

Attribute
data-expand required Marks textarea to be expanded
data-expand-class optional Sets class prefix for style. Default is expand__

See /demo directory for an example.

Dependencies

  • jQuery version 1.9.0 or above

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published