Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/04/2006, 12:21
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 21 años, 9 meses
Puntos: 5
se me ocurre esto para ti:

Código PHP:
<script language="javascript">
 function 
GetComodines() {
  var 
inputs document.getElementsByTagName("input");
  for (
i=0inputs.lengthi++) {
   if (
inputs[i].type == "text") {
    if (
inputs[i].name.substring(06) == "precio") {
     
alert(inputs[i].value);
    }
   }
  }
 }
 
 
window.onload = function() {
  
GetComodines();
 }
</script> 
Código HTML:
<input type="text" name="precio1" id="precio1" value="1">
<input type="text" name="precio2" id="precio2" value="2">
<input type="text" name="precio3" id="precio3" value="3">
<input type="text" name="precio4" id="precio4" value="4">
<input type="text" name="precio5" id="precio5" value="5"> 
saludos
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.