1
我有以下代碼更改背景顏色選擇
<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;
}
我想要的是:
一旦我選擇任何單選按鈕,像(label_main_selected)類主要DIV變化的背景
感謝