How can I change the background color of the div "#cont-comentarios" when a checkbox is clicked? The change should occur in a loop using 'this'. I have tried numerous solutions before reaching out for help. See the code snippet below for better understanding:
<div id="cont-comentario" style="margin-bottom: 10px; background:#eee; padding: 10px;">
<p>
<label>
<input type="checkbox" id="atualizaComentario"/> Ativo
</label>
</p>
</div>