darrentaytay / jquery-character-counter

A simple, Twitter style character counter for HTML input fields.
51 stars 31 forks source link

support more than one class for counterCssClass #17

Open neuropass opened 8 years ago

neuropass commented 8 years ago

currently if more than once class is added the plugin breaks.

Would it be possible to have a fix to add multiple classes?

dalistoadsoft commented 6 years ago

you can use customFields parameter,

$("#custom_fields").characterCounter({ 
                counterCssClass: 'first-class-name'
                customFields: {
                    'class': 'second-class-name',
                }
            });