[BO] 임가현황 - 은행자동이체내역 작업 중 (1)
This commit is contained in:
@@ -467,7 +467,15 @@ const formatNumberWithComma = (value) => {
|
||||
|
||||
const limitMaxLength = (el) => {
|
||||
const maxLength = parseInt(el.getAttribute('maxlength'), 10);
|
||||
el.value = el.value.replace(/\D/g, '').slice(0, maxLength);
|
||||
let $el = $(el);
|
||||
|
||||
if ($el.val().length > maxLength) {
|
||||
$el.val(el.val().slice(0, $el.attr('maxlength')));
|
||||
}
|
||||
|
||||
if ($el.attr('inputmode') === 'numeric') {
|
||||
$el.val($el.val().replace('.', ''));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user