How it works
This plugin integrates by default with Twitter bootstrap using badges to display the maximum length of the field where the user is inserting text. This plugin uses the HTML5 attribute "maxlength" to work. For more info, please visit the bootstrap-maxlength
Basic Example
<!-- Plugin Js -->
<script src="assets/bundles/maxlength.bundle.js"></script>
<!-- HTML -->
<input type="text" class="form-control form-control-lg mb-1" id="bs_maxlength_basic" maxlength="10">
<!-- Jquery Page Js -->
<script>
// basic
$('#bs_maxlength_basic').maxlength({
warningClass: "badge bg-primary",
limitReachedClass: "badge bg-success"
});
</script>