I have a table like this, and i have a checkbox at each row and checkboxes on each column. So i want to show/hide an tick mark image next to data in each td when i check the checkbox in the row and table headers. And the tick mark should hide when i uncheck.
Demo of this: http://jsfiddle.net/MpzXU/3/
<table id="example">
<thead>
<tr>
<th></h>
<th>PO Number</th>
<th>Hangtag<input type="checkbox" value="hangtag" class="ht_chkbx"/></th>
<th>Care Label<input type="checkbox" value="Care Label" class="cl_chkbx"/></th>
<th>UPC<input type="checkbox" value="UPC" class="upc_chkbx"/></th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox" name="checkbox2" id="checkbox2"></td>
<td>6711112</td>
<td>1</td>
<td>20</td>
<td>17</td>
</tr>
</tbody>
</table>
JSFiddle Demo (edited to match comments)
I change the color of the text on checkbox change by adding a class.
For each i check if both corresponding checkboxes (line and column) are unchecked before removing the class.
HTML
jQuery