I am exploring a way to to change the background colour of div OR change its class when a select box is checked. I can't figure it out because I can't understand what the best approach would be. I have replicated what I have done here: https://jsfiddle.net/c8qremy2/
<input type="checkbox" name="blue" value=".cp" id="cp"><label for="blue">Couch Potato</label>
So by checking the above checkbox is it possible to change the background colour of the below div:
<div class="item cp sp cf bb" id="launDroid">
<a href="" class="bgRed">
<div class="content">
<h2>Laundroid</h2>
<p>Laundry That Does Itself</p>
<div class="tileFooter">Category</div>
</div>
</a>
</div>
The background colour belongs to the to bgRed class. I am wondering if the above checkbox is selected it can change the bgRed class to say bgBlack which would be a black background?