javascript input number type maxlength 설정 HTML : JS : //maxlength 체크 function maxLengthCheck(object){ if (object.value.length > object.maxLength){ object.value = object.value.slice(0, object.maxLength); } } 출처 : http://jinmanp.tistory.com/12 프로그래밍/JavaScipt 2016.12.22