$('input').simpleTxtCounter({ maxLength: 20, countText: 'Maximum', countElem: '<div class="form-text"></div>', lineBreak: false, }); $('textarea').simpleTxtCounter({ maxLength: 140, countText: 'Max', countElem: '<div class="form-text"></div>', lineBreak: true, });