CSS: angehakt - <td> Hintergrund ändern

Mit CSS ist es möglich, das zu ändernbackground-color eines ganzen<tr> basierend darauf, ob ein<input type="checkbox"> wird geprüft?

Beispiel
<code><table>
 <!-- This is the row I want to change the background of... -->
 <tr>
  <td>
   <!-- ...when this is checked -->
   <input type="checkbox" name="cb1" id="cb1" />
  </td>
  <td>Something 1</td>
 </tr>
</table>
</code>

Antworten auf die Frage(1)

Ihre Antwort auf die Frage