title: getting values from checkbox List inside a HTML table
body: <p>I have this kind of table, it has many rows and each row has two columns, first column has a text and second column has list of checkboxes for each row. I was able to retrieve the values of fist column but not the values of selected checkboxes for each colunm. </p>
  
  <p>I have used <code>var cellval=Table.rows[i].cells[0].firstChild.data</code> in a "for" loop in the Java Script to get the first column values, but how can I get the selected checkbox values for each row inside this for loop? (I need to map for each 1st cell value what are the selected checkbox values in the 2nd cell)   </p>
  
  <pre><code>&lt;tbody&gt;
              &lt;% List data = (List) request.getAttribute("fiboterm");%&gt;
  &lt;%int i=0;%&gt;
          &lt;c:forEach var="row" items="${PhraseScoreList}"&gt;
              &lt;tr&gt;
                  &lt;td width="75%"&gt;${row.phraseContent}&lt;/td&gt;
                  &lt;td width="25%"&gt;
                      &lt;div style="overflow: auto; width: 200px; height: 75px; border: 1px solid #336699; padding-left: 5px"&gt;
                         &lt;%Iterator itr;%&gt;
                          &lt;% 
                          for( int j=0;j&lt;data.size(); j++){
                          %&gt;
                          &lt;input type="checkbox" name="nums&lt;%=i%&gt;" id="chk[&lt;%=i%&gt;]" value="&lt;%=data.get(j)%&gt;"&gt; &lt;%=data.get(j)%&gt;&lt;br&gt;
                          &lt;%}
                         i++;
  %&gt;
                      &lt;/div&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/c:forEach&gt;
          &lt;/tbody&gt;
  </code></pre>