[jQuery] help: get all rows with checked checkboxes, then doSomething to them
I have a table something like this:
<table id="myTable">
<thead>
<tr>
<th>this</th>
<th>that</th>
<th>theOther</th>
</tr>
</thead>
<tbody>
<tr id="row1">
<td class="act"><input type="checkbox" name="actions"></
input></td>
<td>da</td>
<td>dee</td>
</tr>
<tr id="row2">
<td class="act"><input type="checkbox" name="actions"></
input></td>
<td>da</td>
<td>dee</td>
</tr>
...
<tr id="row30">
<td class="act"><input type="checkbox" name="actions"></
input></td>
<td>da</td>
<td>dee</td>
</tr>
</tbody>
</table>
When #myButton is clicked, I need to perform a function (doSomething)
on all rows that are checked (doSomething might be, for example,
deleting the rows, or changing background colors). I imagine I need to
use makeArray() to do this, but can't quite figure out the logic. Can
anyone help?
Thanks!