onsubmit 펑션으로 아래 구문 넣으세요
for(i = 0; i < qty.length; i++) {
var cart = document.getElementById(qty[i]);
if(cart.value < 0.1){
alert('0.1 보다 작은 숫자는 입력하지 마세요');
}
}
onsubmit="return fwrite_submit(this); only_number();" 여기에
only_number이라고 넣었는데
<script>
function only_number(){
for(i = 0; i < qty.length; i++) {
var cart = document.getElementById(qty[i]);
if(cart.value < 0.1){
alert('0.1 보다 작은 숫자는 입력하지 마세요');
}
}
</script>
이렇게 하면 될려나 모르겠습니다. ㅋ
only_number이라고 넣었는데
<script>
function only_number(){
for(i = 0; i < qty.length; i++) {
var cart = document.getElementById(qty[i]);
if(cart.value < 0.1){
alert('0.1 보다 작은 숫자는 입력하지 마세요');
}
}
</script>
이렇게 하면 될려나 모르겠습니다. ㅋ