Hola tengo el siguiente script
Código HTML:
<html>
<body>
<form>
<table id="1">
<tr>
<td>Item 1. <input type="hidden" value="1" name="itemc[1]"/><br/>
cantidad 2 <input type="text" name="cant[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]"/>
</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]"/>
</td>
</tr>
</table>
<div>
<label><input type="button" onblur="validar()" value="Enviar"/>
</label>
</div>
</form>
</body>
</html>
se generan dinamicamente lo quiero es saber como obtener el tamaño de arreglo para poder hacer las validaciones muchas gracias.