When entering the card number and code in the input fields, the last number is always replaced if the input is continued. How to cancel it?
Maybe somewhere here:
function checkMaxInput(){ var max = $(this).data('max'); var keyCode = event.keyCode; if( keyCode!=key_code_map.backspace && keyCode!=key_code_map.delete && keyCode!=key_code_map.go && keyCode!=key_code_map.next && this.value.length==max ) { this.value = this.value.slice(0,-1) } }; UPD
It is necessary that when entering the maximum number, the input is stopped, and the replacement of the last number does not occur. Those. it is necessary to do this: when the last maximum digit is entered in input, no input takes place when the numbers are dialed further.