codice:
<script language="javascript">
function aggEle(aggiungi){
document.getElementById(aggiungi).value = Math.round(document.getElementById(aggiungi).value) + 1;
}
function sottEle(sottrai){
if (document.getElementById(sottrai).value >= 0){
document.getElementById(sottrai).value = Math.round(document.getElementById(sottrai).value - 1);
} else {
document.getElementById(sottrai).value = 0;
}
}
</script>
<form name="form1">
<input name="qta" onClick="this.value='1'" id="qta_1" onKeyUp="this.value=this.value.replace(/[^\d]/g,'');" onChange="this.value=this.value.replace(/[^\d]/g,'');" type="text" class="inputform_10" size="4" maxlength="4" autocomplete="off">
[img]imgecom/fr_top_off.gif[/img]
[img]imgecom/fr_dw_off.gif[/img]</form>
a me cosi funziona perfettamente, l'unica modifica che ho fatto, non avendo il supporto asp è che gli ho dato dei valori fissi.
guardalo, a me funziona, ti do anche il link dove vederlo.
http://213.203.147.165/prove/p.php