We have a simple table with say (nxm matrix) and the user will randomly select a set of entries based on the following conditions.
Our layout is like this (just pseudo code)
<table>
<thead>
<tr>
c:forEach 1...31
<th></th>
</tr>
</thead>
<tbody>
<tr> // could be 30 | 40 | 50 rows
<td>1...31</td> // Just mentioned that there would be as much cells as looped on the c:forEach above
</tr>
</tbody>
</table>
a] On cell selection we would like to flip the cell color (i.e. ) between blue, yellow. The color should toggle on a particular cell selection. b] If the user selects the header panel (e.g. anything between 1...31) the corresponding column (i.e. all cells in that column) should toggle between blue, yellow
We were thinking using invisible checkboxes to do this, but we haven't got the javascript (we use jquery) logic to select and unselect this correctly. need pointers here, to implement this capability.