![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
05/02/2009, 16:51
|
![Avatar de LuZBinG](http://static.forosdelweb.com/customavatars/avatar212526_1.gif) | | | Fecha de Ingreso: enero-2008
Mensajes: 407
Antigüedad: 17 años Puntos: 5 | |
Respuesta: Agregar y borrar renglones a tabla encontre esto funciona
<script>
function agregar()
{
var tr, td;
tr = document.all.tabla.insertRow();
td = tr.insertCell();
td.innerHTML = "<input type='text' name='dato_fecha' id='dato_fecha'>";
td = tr.insertCell();
td.innerHTML = "<input type='text' name='dato_caja' id='dato_caja'>";
}
function borrarUltima()
{
ultima = document.all.tabla.rows.length - 1;
document.all.tabla.deleteRow(ultima);
}
</script>
<table id="tabla" border=1 width="30%">
<tr>
<th width="75%">Fecha de Vencimiento</th>
<th width="25%"># Cajas</th>
</tr>
</table>
<br>
<input type="button" value="Agregar" onclick="agregar()">
<input type="button" value="Borrar ultima" onclick="borrarUltima()">
pero como hago para guardar los valores de los textbox a la bd
ayuda por fa |