title: Help deleting fields from an HTML table
body: <p>So I am not sure exactly how to tag this one, but basically I have a dynamically loaded HTML table, that contains values that will can be deleted, currently I am using check boxes for the user to decide which row to delete.  Here is my code so far:</p>
  
  <pre><code>      &lt;table id="comments" align="center" width="59%"&gt;
      &lt;thead&gt;
        &lt;th class="headerClass" width="7%"&gt;Delete&lt;/th&gt;
        &lt;th width="15%" class="headerClass"&gt;Date&lt;/th&gt;
        &lt;th class="headerClass" width="15%"&gt;Employee&lt;/th&gt;
        &lt;th class="headerClass"&gt;Comment&lt;/th&gt;
      &lt;/thead&gt;
        &lt;tbody&gt;           
  &lt;%
    while (result.next()) { 
  
          commentDate = StringUtils.defaultString(result.getString("commentDate"));
          commentUser = StringUtils.defaultString(result.getString("cName"));
          comment = StringUtils.defaultString(result.getString("xbs_comment"));
  
  %&gt;
  
        &lt;tr&gt;
          &lt;td class="normal"&gt;&lt;input type="checkbox" class="checkbox" /&gt;&lt;/td&gt;
          &lt;td class="normal"&gt;&lt;%=commentDate%&gt;&lt;/td&gt;
          &lt;td class="normal"&gt;&lt;%=commentUser%&gt;&lt;/td&gt;
          &lt;td class="normal" width="68%"&gt;&lt;%=comment%&gt;&lt;/td&gt;                
        &lt;/tr&gt; 
    &lt;/tbody&gt;     
  &lt;/table&gt;    
    &lt;label for="comment"&gt;&lt;h4&gt;Add a Comment:&lt;/h4&gt;&lt;/label&gt; 
    &lt;textarea cols="105" id="comment" name="comment" rows="4"&gt;&lt;/textarea&gt; 
  &lt;br /&gt;
  
  &lt;div align="center" class="submit"&gt;
    &lt;input class="submit" width="10%" type="submit" name="submit" id="submit" value="Submit" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>Basically I have a table with comments, the user can add a comment using the submit button, but I would like them to also be able to use the check box to delete comments.  Do i need another form tag w/ a delete button, or can I use just this one submit button?  Also if I do stay with the check boxes, how do I let the back end of my program(function and servlet) know which was checked?  Thanks for any help!!</p>