Usage.

Include the scripts.

After uCount has been downloaded it should be included int the website's head section, after jQuery.

<script src="/js/jquery-1.8.2.min.js"></script>
<script src="/js/jfilestyle.js"></script>

uCount requires jQuery version 1.7 or newer. In order to make it work with earlier versions, it's necessary to change the jQuery.on() function call to an alternative, such as jQuery.bind().

Run uCount.

As with most jQuery plugins, uCount is a function available in the jQuery object. In order to attach a counter to a text input or textarea, target the widget just place this code in the website's body section:

<script>$("input[type=text], textarea").uCount();</script>

Of course you may target individual text fields and use uCount with different options on each:

<script>
$("#text1").uCount({
    min: 3,
    max: 16
});
$("#text2").uCount({
    position: "before"
});
</script>

For information about the available options, please refer to the API reference.