can someone help me with some traversing and some logic here please. the logic is this:
- if any checkbox in column3 is checked then check the first column checkbox.
- if none in column 3 is selected, uncheck checkbox in column1
如果第1栏的检查箱没有检查,那么第3栏中的所有检查箱就没有检查。
<table> <tr> <td><input class="isSelected" type="checkbox" /></td> <td>row1col2</td> <td><input class="actionItem" type="checkbox" /><input class="actionItem" type="checkbox" /></td> </tr> <tr> <td><input class="isSelected" type="checkbox" /></td> <td>row2col2</td> <td><input class="actionItem" type="checkbox" /><input class="actionItem" type="checkbox" /></td> </tr> <tr> <td><input class="isSelected" type="checkbox" /></td> <td>row3col2</td> <td><input class="actionItem" type="checkbox" /><input class="actionItem" type="checkbox" /></td> </tr> </table>