텍스트를 숫자로 캐스팅후 진행

This commit is contained in:
hehihoho3@gmail.com 2025-01-06 16:11:13 +09:00
parent 29abb4b93d
commit 34da8a5b69

View File

@ -737,12 +737,15 @@ function fnPriceReset() {
//문자발송 금액 변경 처리
function fnPriceUpdate(mberId){
console.log('fnPriceUpdate : ', fnPriceUpdate);
var priceChk = false;
// 1원 이하인지 금액 체크
$.each($('#msgPriceForm input'), function(index, elem){
if($(this).val() < 1)
var value = parseFloat($(this).val()); // 숫자로 변환
console.log('value : ', value);
if(value < 1)
priceChk = true;
});
if(priceChk){