A simple plugin to restrict text inputs to specific word and/or character limits.
##Usage ###Options
$('#mytext').textlimit({wordlimit:5});
###Data attributes Using data attributes allows you to specify the options for inputs individually:
<input class="textlimit" name="input_one" type="text" data-wordlimit="5"/>
<input class="textlimit" name="input_two" type="text" data-wordlimit="20"/>
Initialised by:
$('.textlimit').textlimit();
##License unlicense.org