textcounter

1.0.2 • Public • Published

jquery-textcounter

Counts typed characters in a textarea and shows how many characters are left until the maximum allowed characters are reached.

###How to use:

<script>
        jQuery(document).ready(function($) {
            $('#comment').countChars({counterElement : "#textareacount b"});
        });
    </script>
</head>
<body>

        <form name="test">
            <textarea maxlength="255" placeholder="" id="comment"></textarea>
            <span id="textareacount">left: <b>255</b></span>
        </form>

<script type="text/javascript" src="jquery.textcounter.min.js"></script>

</body>

Package Sidebar

Install

npm i textcounter

Weekly Downloads

68

Version

1.0.2

License

MIT

Last publish

Collaborators

  • ddiebel