How to use

Copy-paste the following <script> near the end of your pages under JS Implementing Plugins to enable it.

              
                <script src="../assets/vendor/hs-count-characters/dist/js/hs-count-characters.js"></script>
              
            

Copy-paste the init function under JS Plugins Init., before the closing </body> tag, to enable it.

              
                <script>
                  $(document).on('ready', function () {
                    // initialization of Count Characters
                    $('.js-count-characters').each(function () {
                      new HSCountCharacters($(this)).init()
                    });
                  });
                </script>
              
            

Basic examples

Max length

Use maxlength="*" attribute

Methods

Parameters Description Default value

output

Element to display the number of characters. null