How to effectively show/hide parts of table cells (and replace js onclick)?

I have the following code.

HTML:

<table border=1>
   <tr id=row1>
     <td><label><input type=checkbox onclick=toggle('row1')></label></td>
     <td>cell 2<div>cell 2 details<div></td>
     <td>cell 3<div>cell 3 details</div></td>
   </tr>
   <tr id=row2>
     <td><label><input type=checkbox onclick=toggle('row2')></label></td>
     <td>cell 2<div>cell 2 details<div></td>
     <td>cell 3<div>cell 3 details</div></td>
   </tr>
   <tr id=row3>
     <td><label><input type=checkbox...
Code (markup):
How to effectively show/hide parts of table cells (and replace js onclick)?

from HTML & Website Design http://ift.tt/291ULdv
via IFTTT
Previous
Next Post »
Thanks for your comment