+ 1
Need help with increment decrement operators.
2 Réponses
+ 2
<script>
var quantityVar = 0;
var textQuan = "Quantity:";
function quantity(){
quantityVar++;
document.getElementById("print").innerHTML = textQuan +" "+quantityVar;
}
function minus(){
quantityVar--;
document.getElementById("print").innerHTML =
textQuan +" "+quantityVar ;
}
</script>
0
Thanks!