Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/11/2007, 12:30
leo_25
 
Fecha de Ingreso: agosto-2004
Ubicación: Lima
Mensajes: 109
Antigüedad: 19 años, 9 meses
Puntos: 1
Re: ayuda con tamaño o catidad de arreglo

Muchas gracias caricatos por tu ayuda como hago para poder solo realizar la validacion del input cant[x] ya que ademas tengo otros inputs text box, pero como te digo solo deseo tener la validacion de no vacio de cant[x]
Código HTML:
<html>
<body>
<form>
<table id="1">
<tr>
<td>Item 1. <input type="hidden" value="1" name="itemc[1]"/><br/>
    cantidad 1 <input type="text"  name="cant[1]"/><br/>
    Unidad 1 <input type="text"  name="unidad[1]"/>
</td>

</table>
<table id="2">
<tr>
<td>Item 2 <input type="hidden" value="2" name="itemc[2]"/><br/>
    cantidad 2 cantidad <input type="text"  name="cant[2]"/><br/>
    Unidad 2 <input type="text"  name="unidad[2]"/>
</td>
</tr>

</table>
</table>
<table id="3">
<tr>
<td>Item 3 <input type="hidden" value="3" name="itemc[3]"/><br/>
    cantidad 3 cantidad <input type="text"  name="cant[3]"/><br/>
    Unidad 3 <input type="text"  name="unidad[3]"/>
</td>
</tr>

</table>

<div>
<label><input type="button" onblur="validar()" value="Enviar"/>
</label>
</div>
</form>
</body>
</html> 
muchas gracias pòr tu ayuda.