tengo este escript :) con el cual puedo agregar una fila y un valor.. pruebenlo esta bueno
pero me gustaria al descheckear (esta bien dicho?) se elimine la celda. va el script, saludos!!!!!!!!!!!
Código PHP:
   <SCRIPT LANGUAGE="JavaScript">
function addRow(newlabel){
if (document.form1.nuevocampo.value == ''){
    
    alert('Enter the label for this area.');
    document.form1.nuevocampo.focus();
    return(false);
}
    var tbody = document.getElementById("myTable").getElementsByTagName("TBODY")[0];
    var row = document.createElement("TR")
    var td1 = document.createElement("TD")
    td1.appendChild(document.createElement("<input type='checkbox' name='chk1' value='1' checked>"))
    var td2 = document.createElement("TD")
    td2.appendChild (document.createTextNode(newlabel))
    row.appendChild(td1);
    row.appendChild(td2);
    tbody.appendChild(row);
    document.form1.nuevocampo.value='';
}
</script>
<table id="myTable" cellspacing="2" border="0" cellpadding="2">
  <tbody> 
  
  </tbody>
</table>
<form name="form1" method="post" action="">
  <table border="0" cellspacing="2" cellpadding="2">
    <tr>
      <td>
        <input type="text" name="nuevocampo">
      </td>
      <td>
        <input type="button" name="Button" value="agregar" onClick="javascript:addRow(document.form1.nuevocampo.value)">
      </td>
    </tr>
  </table>
</form> 
   
 
