"input max volue"
Bootstrap 4.0.0 Snippet by globalestudio

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <input class="test-input" type="text" maxlength="5" /> <script> $('.test-input').unbind('keyup change input paste').bind('keyup change input paste',function(e){ var $this = $(this); var val = $this.val(); var valLength = val.length; var maxCount = $this.attr('maxlength'); if(valLength>maxCount){ $this.val($this.val().substring(0,maxCount)); } }); </script>

Related: See More


Questions / Comments: