텍스트를 숫자로 캐스팅후 진행
This commit is contained in:
parent
29abb4b93d
commit
34da8a5b69
@ -737,12 +737,15 @@ function fnPriceReset() {
|
|||||||
|
|
||||||
//문자발송 금액 변경 처리
|
//문자발송 금액 변경 처리
|
||||||
function fnPriceUpdate(mberId){
|
function fnPriceUpdate(mberId){
|
||||||
|
console.log('fnPriceUpdate : ', fnPriceUpdate);
|
||||||
|
|
||||||
var priceChk = false;
|
var priceChk = false;
|
||||||
|
|
||||||
// 1원 이하인지 금액 체크
|
// 1원 이하인지 금액 체크
|
||||||
$.each($('#msgPriceForm input'), function(index, elem){
|
$.each($('#msgPriceForm input'), function(index, elem){
|
||||||
if($(this).val() < 1)
|
var value = parseFloat($(this).val()); // 숫자로 변환
|
||||||
|
console.log('value : ', value);
|
||||||
|
if(value < 1)
|
||||||
priceChk = true;
|
priceChk = true;
|
||||||
});
|
});
|
||||||
if(priceChk){
|
if(priceChk){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user