0
我在一個多選擇測驗形式中有一組單選按鈕,我對按鈕有點麻煩。 當我嘗試單擊除第一個單選按鈕之外的任何其他單選按鈕時,它會立即顯示第一個單選按鈕爲選定狀態,並且需要3-4次嘗試才能最終標記所需的按鈕。這是我的代碼,如果你想測試它:php廣播組奇怪的行爲
<form action="<?php echo $editFormAction; ?>" method="post" name="form" target="_self" id="form1">
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td class="greentitle">Question 1</td>
<td>
<label>
<input type="radio" name="environment" value="1" />1
<input type="radio" name="environment" value="2" />2
<input type="radio" name="environment" value="3" />3
<input type="radio" name="environment" value="4" />4
<input type="radio" name="environment" value="5" />5
</label>
</td>
</tr>
<tr>
<td class="greentitle">Question 2</td>
<td>
<input name="speed" type="radio" value="1" />1
<input name="speed" type="radio" value="2" />2
<input name="speed" type="radio" value="3" />3
<input name="speed" type="radio" value="4" />4
<input name="speed" type="radio" value="5" />5
</td>
</tr>
<tr>
<td class="greentitle">Question 3</td>
<td>
<input name="quality" type="radio" value="1" />1
<input name="quality" type="radio" value="2" />2
<input name="quality" type="radio" value="3" />3
<input name="quality" type="radio" value="4" />4
<input name="quality" type="radio" value="5" />5
</td>
</tr>
<tr>
<td class="darkgrey"> </td>
<td><input name="submit" type="submit" class="formmed" id="submit" value="Submit" tabindex="5" style="width:200px;"/></td>
</tr>
</table>
</form>
適合我的工作方式:http://jsfiddle.net/uQEfF/ –
可能是因爲第一組單選按鈕是在