Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
/ jquery-textcounter Public archive

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

Notifications You must be signed in to change notification settings

ddiebel/jquery-textcounter

Repository files navigation

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>

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published