<script type="text/javascript">
function addQtyone(){
var qtyPro=$('qty');
qtyPro.value = parseInt(qtyPro.value)+1;
}
function redQtyone(){
var qtyPro=$('qty');
if(qtyPro.value<2){
alert("At least 1 !");
}else{
qtyPro.value = parseInt(qtyPro.value)-1;
}
}
function addQtyone(){
var qtyPro=$('qty');
qtyPro.value = parseInt(qtyPro.value)+1;
}
function redQtyone(){
var qtyPro=$('qty');
if(qtyPro.value<2){
alert("At least 1 !");
}else{
qtyPro.value = parseInt(qtyPro.value)-1;
}
}
</script>
<span class="reduceQty" οnclick="redQtyone();">-</span>
<span class="addQty" οnclick="addQtyone();">+</span>
放到
<label for="qty"><?php echo $this->__('Qty:') ?></label>
前就行具体位置再调整