Javascript: Parsing html table

RinaS

New Member
I am working on a html page. The page has a table with 3 columns and a button. One of the columns of the table is a check box (The number of rows are changed dynamically):\[code\]<table cellpadding="0" cellspacing="0" border="1" class="display" id="tag" width="100%"> <tbody> <tr> <td align="center"> <input type="checkbox" class="case" name="case" value="http://stackoverflow.com/questions/13830945/0"/> <td>fruit</td> <td>apple</td> </tr> <tr> <td align="center"> <input type="checkbox" class="case" name="case" value="http://stackoverflow.com/questions/13830945/1"/> <td>fruit</td> <td>pear</td> </tr> </tbody></table><p><input type="button" value="http://stackoverflow.com/questions/13830945/Generate" onclick="generate()"></p>\[/code\]When user click the "Generate" button, the generate() function will generate a special string base on the column of each row.My question is that how can I check if the "checkbox" row is checked or not? I would like to filter those non-checked rows when I generate the string.Thanks.
 
Back
Top