Limit the lines of an textarea
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.editorconfig
.gitignore
index.html
readme.md

readme.md

jQuery Limit Lines

Plugin for limit the lines of an textarea.

<textarea rows="10" cols="30" id="text"></textarea>

<script>
$('#text').limitLines();
</script>

Configuration

  • Max rows: Proprety rows
  • Max chars in a row: Proprety cols

To do

  • Unit Tests
  • More configurations options