Skip to content

Jquery plugin to limit rows of a textarea, with wordwrap also counting as rows.

Notifications You must be signed in to change notification settings

hubertusanton/jquery.textareamaxrows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery.textareamaxrows

Description

Jquery plugin to limit rows of a textarea, with wordwrap also counting as rows.

Maintainer Contacts

Dertig Media

Requirements

  • Jquery 1.7.2

Documentation

examples of usage:

$('#idoftextarea').textareamaxrows();

$('#idoftextarea').textareamaxrows({alert:true});

$('#idoftextarea').textareamaxrows({alert:true, alertmessage : 'hey too long!', maxrows : 4, maxcharsinrow : 12});

$('#idoftextarea').textareamaxrows({usecounter : true, counterelem : '#counter'});

Plugin now stops accepting new chars when limits are reached. Pasting in a textarea can mess this up, solution for this can be placing onpaste="return false" in the html of the textarea, in the next version we will try to place this as an option in the plugin.

About

Jquery plugin to limit rows of a textarea, with wordwrap also counting as rows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published