SkillAgentSearch skills...

Jquery.textareamaxrows

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

Install / Use

/learn @hubertusanton/Jquery.textareamaxrows
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1y ago
Forks2

Languages

JavaScript

Security Score

55/100

Audited on Mar 19, 2025

No findings