🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

textareamaxrows is a simple textarea enhancement plugin which limits the maximum number of lines in a textarea element.

Textarea

Documentation

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.


You May Also Like