Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/08/2008, 16:55
edxodar_12
 
Fecha de Ingreso: mayo-2008
Mensajes: 71
Antigüedad: 16 años
Puntos: 1
Respuesta: caja de texto sumale 1

ya pude


<script>
function yo(){
c=1;var consec= new Array()
conse=(document.getElementById("consec["+c+"]").value !="")?parseFloat(document.getElementById("consec["+c+"]").value):0;
b=2
consec[b]=document.getElementById("consec["+b+"]");
consec[b].value=conse+1;
}
</script>
<input name="consec[1]" type="text" value="1" class="texto" size="10" id="consec[1]" >
<input name="consec[2]" type="text" class="texto" size="10" id="consec[2]" onblur="return yo()">
<input name="consec[3]" type="text" class="texto" size="10" id="consec[3]" onchange="return yo()">

Última edición por edxodar_12; 15/08/2008 a las 17:13