O que eu quero se poderem me ajudar agradeço muito, é adicionar uma linha com os valores do campo texto clicando em um botao e remover a linha quando clica no botao daquela linha.
Lembrando que os campos de texto nao pode ter mesmo nome, pois esses dados sera enviado ao banco.
codificacao para ajudar a entender:
Lembrando que os campos de texto nao pode ter mesmo nome, pois esses dados sera enviado ao banco.
codificacao para ajudar a entender:
Código HTML:
<form id="form1" name="form1" method="post" action=""> <table width="935" border="0" class="fundo"> <tr> <td width="311">Capacitacao</td> <td width="106">Carga horaria</td> <td width="395">Local</td> <td width="115">Data</td> <td > </td> </tr> <tr> <td><label for="txtCapacitacao1"></label> <input type="text" name="txtCapacitacao" id="txtCapacitacao"></td> <td><label for="txtCarga1"></label> <input type="text" name="txtCarga" id="txtCarga"></td> <td><label for="txtLocal1"></label> <input type="text" name="txtLocal" id="txtLocal"></td> <td><label for="txtData1"></label> <input type="text" name="txtData" id="txtData"></td> <td ><input name="Botão" type="button" value="Adcionar" /> </td> </tr> </table> <br /> <table width="935" border="0" class="fundo" id="tblCapacitacao"> <tr> <td width="255">Capacitacao</td> <td width="144">Carga horaria</td> <td width="304">Local</td> <td width="214">Data</td> </tr> <tr> <td><label for="txtCapacitacao1"></label> <input type="text" name="txtCapacitacao1" id="txtCapacitacao1"></td> <td><label for="txtCarga1"></label> <input type="text" name="txtCarga1" id="txtCarga1"></td> <td><label for="txtLocal1"></label> <input type="text" name="txtLocal1" id="txtLocal1"></td> <td><label for="txtData1"></label> <input name="txtData1" type="text" id="txtData1" size="8" maxlength="8"> <input type="submit" name="button" id="button" value="Remover"></td> </tr> </table> </form>
Comment