Skip to content

Replaces a textarea with multiple text inputs, automatically appending a new input when the last is filled with content.

Notifications You must be signed in to change notification settings

staydecent/jQuery-MultilineText

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

jQuery MultilineText

Replaces a textarea with multiple text inputs, automatically appending a new input when the last is filled with content. On submit, the plugin recombines all of the individual text inputs into one textarea for server side processing.

Usage

// Replace a single textarea with multiple text inputs,
// each representing a new line.
$('textarea.multiline').multilineText();

If you are handling form submission with ajax, you need to call .multilineText() on success.

Examples

Check out the blog post here: http://staydecent.ca/bits/jquery-multiline-text-input Or view the JSFiddle here: http://jsfiddle.net/dQSNP/5/

About

Replaces a textarea with multiple text inputs, automatically appending a new input when the last is filled with content.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published