I have the following code
<form id="form1" name="form1" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td ><div class="label_main" id="lab1">
<div class="label_radio">
<input type="radio" name="group1" id="r0" value="0" />
</div>
<div class="label_top">
<label for="r0">Group1</label>
</div>
<div class="label_desc">
<label for="r1">Members of Groups1 </label>
</div>
</div>
</div> </tr>
<tr>
<td><div class="label_main">
<div class="label_radio">
<input type="radio" name="group1" id="r1" value="1" />
</div>
<div class="label_top">
<label for="r1">Groups2</label>
</div>
<div class="label_desc">
<label for="r1">Only Group 2 </label>
</div>
</div></td>
</tr>
</table>
</form>
.label_main_selected
{
padding-top:0px;
float:left;
background:#E9ECFF;
}
What I want is:
Once I select any radio button, background of main DIV change like (label_main_selected) class
Thanks