Here are the following steps:
Usage 1
- Download the minified js
- Write HTML - <textarea></textarea>
- Write JS - $('textarea').textLimit(100)
Usage 2
- Download the minified js
- Write HTML -
<textarea></textarea>
<span></span>
<textarea></textarea>
<span></span> - Write JS -
$('textarea').textLimit(100,function( length, limit ){
$(this).next().text( limit - length );
});
No comments:
Post a Comment