Jquery get values of all checked rows in table gridview
问题 I have a table like below <table id="mytable"> <tr><th>checked</th><th>id</th><th>text</th></tr> <tr><td><input id="cb1" type="checkbox" name="checker1"/></td><td>123</td><td>abc</td></tr> <tr><td><input id="cb1" type="checkbox" name="checker1"/></td><td>456</td><td>def</td></tr> <tr><td><input id="cb1" type="checkbox" name="checker1"/></td><td>789</td><td>ghi</td></tr> </table> I want to retrieve (using jquery) a javascript array of all checked ID's in the table. So far I have the following