Hi,
I have the following code which aims to change the color of a parent div when the user unselects the radio button. However it doesn't work.
<div class="jquerycorner"><input type="radio" name="hat" value="4" onblur="if(!this.checked) { this.parentNode.style.backgroundColor='#000000';}">10</div>
However the following code works when I try to detect radio button selection.
<div class="jquerycorner"><input type="radio" name="hat" value="1" onclick="this.parentNode.style.backgroundColor='#FFC0CB';">5</div>
Any ideas?