Código HTML:
<html> <body> <form> <table class="tblCont" style="text-align: left;"> <tbody> <tr> <th>Item</th> <th>Alt.</th> <th>Cant</th> <th>Unid</th> <th>Descripción</th> <th>Marca</th> <th>Prec/unid</th> <th>Costo Total</th> </tr> <tr> <td>1</td> <td>0</td> <td>3</td> <td>C/U</td> <td>Descripcion 1.</td> <td> <input id="marca1" class="inputcotiza1" type="text" onchange="totalItem('costo_tot1','3','prec_unit1')" name="marca1"/> </td> <td> <input id="prec_unit1" class="inputcotiza2" type="text" onchange="totalItem('costo_tot1','3','prec_unit1')" name="prec_unit1"/> </td> <td> <input id="costo_tot1" class="inputcotiza2" type="text" disabled="" name="costo_tot1"/> </td> <td> <a class="" onclick="agregarItem()"> <b>Añadir</b> </a> </td> </tr> <tr> <td>2</td> <td>0</td> <td>1</td> <td>C/U</td> <td>Descripcion2.</td> <td> <input id="marca2" class="inputcotiza1" type="text" onchange="totalItem('costo_tot2','1','prec_unit2')" name="marca2"/> </td> <td> <input id="prec_unit2" class="inputcotiza2" type="text" onchange="totalItem('costo_tot2','1','prec_unit2')" name="prec_unit2"/> </td> <td> <input id="costo_tot2" class="inputcotiza2" type="text" disabled="" name="costo_tot2"/> </td> <td> <a class="" onclick="agregarItem()"> <b>Añadir</b> </a> </td> </tr> </tbody> </table> </form> </body> </html>
Aquien me de una mano en esto le agradezco bastante.